Giter Site home page Giter Site logo

tds-fdw / tds_fdw Goto Github PK

View Code? Open in Web Editor NEW
349.0 36.0 98.0 603 KB

A PostgreSQL foreign data wrapper to connect to TDS databases (Sybase and Microsoft SQL Server)

License: Other

C 90.42% Makefile 0.76% Python 8.82%
postgresql-extension postgresql tds-fdw freetds foreign-server sql-server databases foreign-data-wrapper hacktoberfest

tds_fdw's Introduction

TDS Foreign data wrapper

  • Author: Geoff Montee
  • Name: tds_fdw
  • File: tds_fdw/README.md

Logo

Logo SVG

About

This is a PostgreSQL foreign data wrapper that can connect to databases that use the Tabular Data Stream (TDS) protocol, such as Sybase databases and Microsoft SQL server.

This foreign data wrapper requires a library that implements the DB-Library interface, such as FreeTDS. This has been tested with FreeTDS, but not the proprietary implementations of DB-Library.

This should support PostgreSQL 9.2+.

The current version does not yet support JOIN push-down, or write operations.

It does support WHERE and column pushdowns when match_column_names is enabled.

Build Status

CentOS 7 Rocky Linux 8 Ubuntu 20.04 openSUSE Leap 15.5
PostgreSQL 12 Build Status Build Status Build Status Build Status
PostgreSQL 13 Build Status Build Status Build Status Build Status
PostgreSQL 14 Build Status Build Status Build Status Build Status
PostgreSQL 15 Build Status Build Status Build Status Build Status
PostgreSQL 16 N/A Build Status Build Status Build Status

Installing on RHEL and clones (CentOS, Rocky Linux, AlmaLinux, Oracle...)

See installing tds_fdw on CentOS.

Installing on Ubuntu

See installing tds_fdw on Ubuntu.

Installing on Debian

See installing tds_fdw on Debian.

Installing on openSUSE

See installing tds_fdw on openSUSE.

Installing on OSX

See installing tds_fdw on OSX.

Installing on Alpine (and Docker)

See installing tds_fdw on Alpine.

Usage

Foreign server

See creating a foreign server.

Foreign table

See creating a foreign table.

User mapping

See creating a user mapping.

Foreign schema

See importing a foreign schema.

Variables

See variables.

EXPLAIN

EXPLAIN (VERBOSE) will show the query issued on the remote system.

Notes about character sets/encoding

  1. If you get an error like this with MS SQL Server when working with Unicode data:

    NOTICE: DB-Library notice: Msg #: 4004, Msg state: 1, Msg: Unicode data in a Unicode-only collation or ntext data cannot be sent to clients using DB-Library (such as ISQL) or ODBC version 3.7 or earlier., Server: PILLIUM\SQLEXPRESS, Process: , Line: 1, Level: 16
    ERROR: DB-Library error: DB #: 4004, DB Msg: General SQL Server error: Check messages from the SQL Server, OS #: -1, OS Msg: (null), Level: 16

    You may have to manually set tds version in freetds.conf to 7.0 or higher. See The freetds.conf File. and Choosing a TDS protocol version.

  2. Although many newer versions of the TDS protocol will only use USC-2 to communicate with the server, FreeTDS converts the UCS-2 to the client character set of your choice. To set the client character set, you can set client charset in freetds.conf. See The freetds.conf File and Localization and TDS 7.0.

Encrypted connections to MSSQL

It is handled by FreeTDS, so this needs to be configured at the freetds.conf. Seee The freetds.conf File and at freetds.conf settings look for encryption.

Support

If you find any bugs, or you would like to request enhancements, please submit your comments on the project's GitHub Issues page.

Additionally, I do subscribe to several PostgreSQL mailing lists including pgsql-general and pgsql-hackers. If tds_fdw is mentioned in an email sent to one of those lists, I typically see it.

Debugging

See Debugging

tds_fdw's People

Contributors

ants avatar bikethis81 avatar brunoenten avatar bullwasher avatar calebhearth avatar cstork avatar deathwish avatar geoffmontee avatar hellower avatar hilalnazli avatar jcarnu avatar juliogonzalez avatar l-we avatar laurenz avatar manio avatar mattiamarzo avatar maxstarkov avatar pgssimon avatar psoo avatar rafaeldev2016 avatar rmarzocchi84 avatar sa1gur avatar sravan-velagandula avatar stevenblack avatar sudoerwithanopinion avatar vitalca avatar zflyguy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tds_fdw's Issues

Postgres 9.4

Is there a version for postgres 9.4 on the horizon?

April

Re: [tds_fdw] Error (#6)

Thanks for the feedback. Could you please provide the following

information:

1.) Do you have FreeTDS installed?
Yes,
2.) What commands did you use to install FreeTDS?
install libct4 libsybdb5 freetds-dev freetds-common libdbd-freetds
3.) What commands did you use to install tds_fdw?
CREATE EXTENSION tds_fdw;

4.) What is the output of the command: ldd /opt/PostgreSQL/9.1/lib/postgresql/tds_fdw.so
ldd: opt/PostgreSQL/9.1/lib/postgresql/tds_fdw.so: No existe el archivo o el directorio.

Yes, exist.

tds_fdw crashes PostgreSQL (segfault) on definition mismatch

Hi,

I have here:

  • RHEL 6.7 on amd64
  • tds_fdw 1.0.7 (from source, currently with -g -DDEBUG -O0)
  • postgresql 9.1.19 (from source)
  • freetds-0.91-2.el6 (RPM)
  • some SQL2008R2 server I don't know too much about

The reproducible issue is a simple SELECT statement causing a complete crash of the PostgreSQL cluster, due to a SIGSEGV in the postgres process:

postgres=# create foreign table sessions (id text, [...])
server veeam_em options (table '[VeeamBackupReporting1].[dbo].[view.Backup.BackupJobSessions]',
row_estimate_method 'showplan_all');
[ ... tds_fdw debug output ... ]
CREATE FOREIGN TABLE

postgres=# select * from sessions;
[...]
NOTICE:  Fetching column 20 (operation)
NOTICE:  Type is 47
NOTICE:  Fetching column 21 (progress)
NOTICE:  Type is 56
server closed the connection unexpectedly
    This probably means the server terminated abnormally
    before or while processing the request.
The connection to the server was lost. Attempting reset: LOG:  server process (PID 12210) was terminated by signal 11: Segmentation fault
LOG:  terminating any other active server processes
WARNING:  terminating connection because of crash of another server process
DETAIL:  The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory.

As it turns out, I missed one source column in my CREATE FOREIGN TABLE statement.

The source has 22 columns, but I told PostgreSQL about 21 columns.

As a result, tds_fdw tries to access an invalid festate->attinmeta->tupdesc->attrs[ncol]:

gdb breakdown:

Program terminated with signal 11, Segmentation fault.
#0  0x00007f6cff5acacd in tdsIterateForeignScan (node=0x1dd7190) at src/tds_fdw.c:1441
1441                    const Oid attr_oid = festate->attinmeta->tupdesc->attrs[ncol]->atttypid;
(gdb) print ncol
$1 = 21
(gdb) print festate->attinmeta->tupdesc->attrs[20]
$3 = (Form_pg_attribute) 0x7f6d0812aff8
(gdb) print festate->attinmeta->tupdesc->attrs[21]
$4 = (Form_pg_attribute) 0x646900016024
(gdb) print *festate->attinmeta->tupdesc->attrs[21]
Cannot access memory at address 0x646900016024
(gdb) print festate->attinmeta->tupdesc->natts
$5 = 21
(gdb) print festate->ncols
$6 = 22

Add support for new character sets

Currently, tds_fdw can't set the character set for the connection.

The FreeTDS implementation of DB-Library does have the DBSETLCHARSET macro to set the character set:

http://www.freetds.org/reference/a00284.html#ga114

However, it says it doesn't work on TDS 7.0+ connections. This makes it less useful for most versions of MS SQL Server, since those try to use 7.0+ by default:

http://www.freetds.org/userguide/choosingtdsprotocol.htm

The reason it is not supported for 7.0+ is described here:

http://www.freetds.org/userguide/localization.htm

"It is also worth clarifying that TDS 7.0 and above do not accept any specified character set during login, as 4.2 does. A TDS 7.0 login packet uses UCS-2."

There's also the dbsetdefcharset function:

http://www.freetds.org/reference/a00284.html#ga86

But it looks like that might be unimplemented in the current versions of FreeTDS.

Character sets can be set in freetds.conf:

http://www.freetds.org/userguide/freetdsconf.htm

It is probably possible to change character sets with DB-Library in a way that is compatible with versions 7.0+ of TDS also. I should figure out how.

On the PostgreSQL side, I also wonder how BuildTupleFromCStrings will handle character sets with multi-byte characters. I might need to find another way to build tuples.

timestamp issue with SQL server

My table definition reads:

CREATE foreign TABLE mssql_location_tender(
Location_Tender_ID bigint,
LocationID int,
TenderID int,
SnapTenderID int,
SnapTenderName varchar(50),
AddedBy int,
AddedDate timestamp,
UpdatedBy varchar(100),
UpdatedDate timestamp,
ReviewedBy varchar(100),
ReviewedDate timestamp
) server mssql_db04 options (database 'Mapper_New', table 'Location_Tender');

When I try to select from the table I get the following:
gmpoc=# select * from mssql_location_tender limit 10;
NOTICE: DB-Library notice: Msg #: 5701, Msg state: 2, Msg: Changed database context to 'master'., Server: DB04, Process: , Line: 1, Level: 0
NOTICE: DB-Library notice: Msg #: 5701, Msg state: 1, Msg: Changed database context to 'Mapper_New'., Server: DB04, Process: , Line: 1, Level: 0
NOTICE: DB-Library notice: Msg #: 5701, Msg state: 2, Msg: Changed database context to 'master'., Server: DB04, Process: , Line: 1, Level: 0
NOTICE: DB-Library notice: Msg #: 5701, Msg state: 1, Msg: Changed database context to 'Mapper_New'., Server: DB04, Process: , Line: 1, Level: 0
ERROR: invalid input syntax for type timestamp: "Jan 21 2013 09:39:36:523AM"

I have 2 questions:

  1. I cannot select from any table that has a column defined as a datetime in SQL and timestamp in postgres. I've tried using a query instead of a table definition as well with a cast function and that doesn't work either. How can I use timestamp with this wrapper?
  2. How can I get rid of the DB-Library notice?

Thanks

Version 1.0.6 does not compile for PostgreSQL 9.5 rc1

gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -I/usr/include/et -fpic -I./include/ -I. -I./ -I/usr/pgsql-9.5/include/server -I/usr/pgsql-9.5/include/internal -I/usr/include/et -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include  -c -o src/tds_fdw.o src/tds_fdw.c
src/tds_fdw.c: In function โ€˜tds_fdw_handlerโ€™:
src/tds_fdw.c:103: warning: assignment from incompatible pointer type
src/tds_fdw.c: In function โ€˜tdsGetForeignPathsโ€™:
src/tds_fdw.c:1901: warning: passing argument 8 of โ€˜create_foreignscan_pathโ€™ from incompatible pointer type
/usr/pgsql-9.5/include/server/optimizer/pathnode.h:82: note: expected โ€˜struct Path *โ€™ but argument is of type โ€˜struct List *โ€™
src/tds_fdw.c:1901: error: too few arguments to function โ€˜create_foreignscan_pathโ€™
src/tds_fdw.c: In function โ€˜tdsGetForeignPlanโ€™:
src/tds_fdw.c:1946: error: too few arguments to function โ€˜make_foreignscanโ€™
make: *** [src/tds_fdw.o] Error 1

Broken for both Ubuntu 12.04 and CentOS 6.7 with PostgreSQL official packages (http://apt.postgresql.org and http://yum.postgresql.org/). See https://jenkins-juliogonzalez.rhcloud.com/job/tds_fdw-build-ng/118/ for reference.

It seems this is due to a change happened between PostgreSQL 9.5 alpha2 (installed at the current CI and building) and 9.5 rc1 (installed at the ng CI).

Error

I have this error in Ubuntu 12.04:

psql -p 5432 -d ecrm
psql (9.1.13, server 9.1.8)
Type "help" for help.

ecrm=# CREATE EXTENSION tds_fdw;
ERROR: could not load library "/opt/PostgreSQL/9.1/lib/postgresql/tds_fdw.so": /opt/PostgreSQL/9.1/lib/postgresql/tds_fdw.so: undefined symbol: dbresults

Empty strings are selected as NULL

Hello,
In SQL Server 2008 R2 I have some nvarchar fields that are nullable. When they are empty strings, they are selected as NULL in PostgreSQL.

Jeff

'datetime' to 'timestamp with time zone' federated field mapping

Hi,

So on the SQL server (2008) the field is datetime, but in the foreign table definition I made the field timestamptz. This is because I am translating a system from SQL server to Postgres and the new field uses timestamptz.

| SQL                       | Federated                     |
|-------------------------  |----------------------------   |
| 2015-11-02 11:15:29.437   | 2015-11-02 06:15:29.437-05    |
| 2015-11-18 09:32:39.557   | 2015-11-18 04:32:39.557-05    |

Should the federated output have a timezone calculation performed on it?

When I change the foreign table definition to timestamp it does not perform the timezone calculation. I just have to cast the output as timestamptz to get the timezone data, which is fine. I just wasn't expecting it to perform the calculation initially.

Both servers are set up as US/New York.

In my freetds locales.conf file I have the following:

[default]
        date format = %b %e %Y %I:%M:%S.%z%p

[en_US]
        date format = %b %e %Y %I:%M:%S.%z%p

I'm using tds_fdw version 1.0.6 along with PostgreSQL 9.4 (EDB)

Thanks!

-Don

Version 1.0.6 does not compile 9.2-

Per this thread on pgsql-general:

http://www.postgresql.org/message-id/2A9DC32516465540A0B1D37D25D6EF9A04149BEE4E@FHDP1LUMXC7V12.us.one.verizon.com

aklaver@panda:~/test/tds_fdw> PATH=/usr/local/pgsql92/bin:$PATH make USE_PGXS=1
cp sql/tds_fdw.sql sql/tds_fdw--1.0.6.sql
cp README.md README.tds_fdw.md
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -fpic -I./include/ -I. -I. -I/usr/local/pgsql92/include/server -I/usr/local/pgsql92/include/internal -D_GNU_SOURCE -c -o src/tds_fdw.o src/tds_fdw.c
src/tds_fdw.c:30:33: fatal error: access/htup_details.h: No such file or directory
#include "access/htup_details.h"
^
compilation terminated.
: recipe for target 'src/tds_fdw.o' failed

tds_fdw 1.0.4 broken for postgres 9.3?

Hi.

I'm updating the repo I have to create RPMs, and noticed I can compile tds_fdw for PostgreSQL 9.4, but not for PostgreSQL 9.3.

Building from the tar.gz file (following CentOS instructions) is showing the same error for CentOS6

[root@centos6-test tds_fdw-1.0.4]# PATH=/usr/pgsql-9.3/bin:$PATH make USE_PGXS=1
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -I/usr/include/et -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fpic -I./include/ -I. -I. -I/usr/pgsql-9.3/include/server -I/usr/pgsql-9.3/include/internal -I/usr/include/et -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include  -c -o src/tds_fdw.o src/tds_fdw.c
src/tds_fdw.c: In function 'tdsConvertToCString':
src/tds_fdw.c:1023: error: 'make_timestamp' undeclared (first use in this function)
src/tds_fdw.c:1023: error: (Each undeclared identifier is reported only once
src/tds_fdw.c:1023: error: for each function it appears in.)
make: *** [src/tds_fdw.o] Error 1

And CentOS7:

[root@centos7-test tds_fdw-1.0.4]# PATH=/usr/pgsql-9.3/bin:$PATH make USE_PGXS=1
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -DLINUX_OOM_ADJ=0 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -fpic -I./include/ -I. -I. -I/usr/pgsql-9.3/include/server -I/usr/pgsql-9.3/include/internal -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include  -c -o src/tds_fdw.o src/tds_fdw.c
In file included from /usr/pgsql-9.3/include/server/funcapi.h:19:0,
                 from src/tds_fdw.c:29:
src/tds_fdw.c: In function โ€˜tdsConvertToCStringโ€™:
src/tds_fdw.c:1023:41: error: โ€˜make_timestampโ€™ undeclared (first use in this function)
      datetime_out = DirectFunctionCall6(make_timestamp, 
                                         ^
/usr/pgsql-9.3/include/server/fmgr.h:554:26: note: in definition of macro โ€˜DirectFunctionCall6โ€™
  DirectFunctionCall6Coll(func, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6)
                          ^
src/tds_fdw.c:1023:41: note: each undeclared identifier is reported only once for each function it appears in
      datetime_out = DirectFunctionCall6(make_timestamp, 
                                         ^
/usr/pgsql-9.3/include/server/fmgr.h:554:26: note: in definition of macro โ€˜DirectFunctionCall6โ€™
  DirectFunctionCall6Coll(func, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6)
                          ^
make: *** [src/tds_fdw.o] Error 1

Building the extension for PostgreSQL 9.4 doesn't show any problem.

Building 1.0.3 (previous version) for PostgreSQL 9.3 doesn't show any problem.

In all cases the PostgreSQL packages are the official from yum.postgresql.org

Warning on the foreign server generates a postgresql error

Hello,

I'm having an issue when accessing a MSSQL server and getting some corrupted UTF16 data. The server issues a warning that is transformed as an postgres error :

ERROR:  DB-Library error: DB #: 2403, DB Msg: Some character(s) could not be converted into client's character set.  Unconverted bytes were changed to question marks ('?'), OS #: 0, OS Msg: Success, Level: 4

I wasn't able to clear the data in the query (tried using nvarchar conversion, COLLATE and xml-related methods, to no avail).

I have been playing with configuration about charset, version, and even tried use utf_16 = yes. However, once again, I had no success with it.

Would it be possible not to convert foreign data warnings into errors ?

Thanks in advance

make fails on ubuntu

Trying to build this on ubuntu, I'm getting the following error:

jross@bitarena:/usr/lib/postgresql/9.3/src/tds_fdw-master$ sudo PATH=/usr/lib/postgresql/9.3/lib/:$PATH make USE_PGXS=1 install
gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -fPIC -pie -fno-omit-frame-pointer -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -fpic -I. -I./ -I/usr/include/postgresql/9.1/server -I/usr/include/postgresql/internal -D_FORTIFY_SOURCE=2 -DLINUX_OOM_ADJ=0 -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/tcl8.5 -c -o tds_fdw.o tds_fdw.c
tds_fdw.c: In function โ€˜tdsIterateForeignScanโ€™:
tds_fdw.c:943:12: warning: variable โ€˜col_nameโ€™ set but not used [-Wunused-but-set-variable]
tds_fdw.c: In function โ€˜tdsPlanForeignScanโ€™:
tds_fdw.c:1648:71: error: expected expression before โ€˜%โ€™ token
tds_fdw.c:1648:71: warning: passing argument 3 of โ€˜tdsGetOptionsโ€™ from incompatible pointer type [enabled by default]
tds_fdw.c:381:13: note: expected โ€˜char *โ€™ but argument is of type โ€˜int *โ€™
tds_fdw.c:1648:71: warning: passing argument 5 of โ€˜tdsGetOptionsโ€™ from incompatible pointer type [enabled by default]
tds_fdw.c:381:13: note: expected โ€˜int *โ€™ but argument is of type โ€˜char *
โ€™
tds_fdw.c:1648:71: error: too few arguments to function โ€˜tdsGetOptionsโ€™
tds_fdw.c:381:13: note: declared here
tds_fdw.c:1664:11: error: โ€˜err_strโ€™ undeclared (first use in this function)
tds_fdw.c:1664:11: note: each undeclared identifier is reported only once for each function it appears in
tds_fdw.c:1863:8: error: โ€˜ret_codeโ€™ undeclared (first use in this function)
tds_fdw.c:1863:29: error: โ€˜festateโ€™ undeclared (first use in this function)
tds_fdw.c:1871:6: error: โ€˜rowโ€™ undeclared (first use in this function)
tds_fdw.c:1866:11: warning: unused variable โ€˜valuesโ€™ [-Wunused-variable]
tds_fdw.c:1865:15: warning: unused variable โ€˜ncolโ€™ [-Wunused-variable]
tds_fdw.c:1865:8: warning: unused variable โ€˜ncolsโ€™ [-Wunused-variable]
tds_fdw.c:1853:7: warning: unused variable โ€˜rowsโ€™ [-Wunused-variable]
tds_fdw.c:1637:7: warning: unused variable โ€˜error_strโ€™ [-Wunused-variable]
tds_fdw.c:1931:1: warning: no return statement in function returning non-void [-Wreturn-type]
make: *** [tds_fdw.o] Error 1

UNION causes "ERROR: invalid memory alloc request"

Hello,
I'm using SQL Server 2008 R2 and PostgreSQL 9.4 beta 3. UNION causes an error. UNION ALL works.

CREATE FOREIGN TABLE public.one (
  one int NOT NULL
)
SERVER jeff OPTIONS (database 'master', query 'SELECT 1')
SELECT * FROM one
UNION
SELECT * FROM one
NOTICE:  DB-Library notice: Msg #: 5701, Msg state: 2, Msg: Changed database context to 'master'., Server: jeff, Process: , Line: 1, Level: 0
NOTICE:  DB-Library notice: Msg #: 5703, Msg state: 1, Msg: Changed language setting to us_english., Server: jeff, Process: , Line: 1, Level: 0
NOTICE:  DB-Library notice: Msg #: 5701, Msg state: 1, Msg: Changed database context to 'master'., Server: jeff, Process: , Line: 1, Level: 0
NOTICE:  DB-Library notice: Msg #: 5701, Msg state: 2, Msg: Changed database context to 'master'., Server: jeff, Process: , Line: 1, Level: 0
NOTICE:  DB-Library notice: Msg #: 5703, Msg state: 1, Msg: Changed language setting to us_english., Server: jeff, Process: , Line: 1, Level: 0
NOTICE:  DB-Library notice: Msg #: 5701, Msg state: 1, Msg: Changed database context to 'master'., Server: jeff, Process: , Line: 1, Level: 0
NOTICE:  DB-Library notice: Msg #: 5701, Msg state: 2, Msg: Changed database context to 'master'., Server: jeff, Process: , Line: 1, Level: 0
NOTICE:  DB-Library notice: Msg #: 5703, Msg state: 1, Msg: Changed language setting to us_english., Server: jeff, Process: , Line: 1, Level: 0
NOTICE:  DB-Library notice: Msg #: 5701, Msg state: 1, Msg: Changed database context to 'master'., Server: jeff, Process: , Line: 1, Level: 0
NOTICE:  DB-Library notice: Msg #: 5701, Msg state: 2, Msg: Changed database context to 'master'., Server: jeff, Process: , Line: 1, Level: 0
NOTICE:  DB-Library notice: Msg #: 5703, Msg state: 1, Msg: Changed language setting to us_english., Server: jeff, Process: , Line: 1, Level: 0
NOTICE:  DB-Library notice: Msg #: 5701, Msg state: 1, Msg: Changed database context to 'master'., Server: jeff, Process: , Line: 1, Level: 0


ERROR:  invalid memory alloc request size 18446744073709551568
********** Error **********

ERROR: invalid memory alloc request size 18446744073709551568
SQL state: XX000
SELECT * FROM one
UNION ALL
SELECT * FROM one
1
1

Option 'query' has 500 character limit

This may be a result of Postgres settings but I have not yet found any documentation that refers to this area of the foreign tables. The gist is, through psql, is I can create foreign tables with a query option string however long I would like it to be. Then, when viewing the options in the properties of the new foreign table (in pgAdmin), the query value is obviously cut off mid-statement and the select throws a syntax error back from SQL Server. Doing some testing reveals that there appears to be a hard limit of 500 characters on the value field. Is this an issue with the data wrapper? Is this a limit with Postgres?

Extension update

Hi,

Is it sufficient to install a new version just by compiling and installing, or do I also need to run
ALTER EXTENSION tds_fdw UPDATE on my server?

I tried to run the ALTER EXTENSION, but I get the following error:

extension "tds_fdw" has no update path from version "1.0.1" to version "1.0.6"

Thanks!

zero byte in middle of binary array

When there is a zero byte in the middle of a binary array postgresql interprets it as end-of-string in BuildTupleFromCStrings, so the rest of the array gets cut off.

This issue might be resolved as part of issue 37, in which case I'll close this one. But in case it isn't I'm opening this so it doesn't get forgotten.

Handle tables with more than INT_MAX rows

Currently the num rows estimate is retrieved as an int, which freetds rejects when the server's estimate (a four byte float in mssql) is more than approximately INT_MAX.

Here is a patch that retrieves the value as a double. In all of its usages later the estimate is converted to a double anyway, so this should cause no harm.

Allow the user to explicitly set a row estimate for a foreign table

Right now, there are two possible values for row_estimate_method that control how tds_fdw calculates row estimates for the planner.

Should there be a foreign table option that allows a user to manually set the row estimate for a foreign table? Perhaps called row_estimate? If set, tds_fdw would basically skip its usual row_estimate_method routine for that foreign table.

It would allow users to do dumb things. However, tds_fdw's execute algorithm of row_estimate_method is also very dumb, and it's the only option on Sybase at the moment.

Query with no where clause stalling on foreign table with ~500k rows.

When performing a query, with or without a where clause, against a foreign table with a clustered index, it's taking so long that it's timing out. The table in question has only ~560,000 rows of data.
Even if I use a limit 1 it still takes a long time to return one row of data.
Other similar queries against tables, also with a clustered index, with only ~90,000 rows come back instantly.

Here's an explain verbose/analyze of the query in question.

# explain (verbose, analyze) select * from db.table;
                                                                                     QUERY PLAN
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 Foreign Scan on db.table  (cost=25.00..564456.00 rows=564431 width=132) (actual time=0.935..148363.049 rows=564431 loops=1)
   Output: id, a, b, c, d, e, f, g, h, i, j
 Planning time: 1798.964 ms
 Execution time: 153531.414 ms
(4 rows)

Here's the same explain but using a where clause on the field that the clustered index is based on.

# explain (verbose, analyze) select * from db.table where id = 135;
                                                                                     QUERY PLAN
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 Foreign Scan on db.table  (cost=25.00..564456.00 rows=564431 width=132) (actual time=1.122..150592.733 rows=1 loops=1)
   Output: id, a, b, c, d, e, f, g, h, i, j
   Filter: (promo_object.id = 135)
   Rows Removed by Filter: 564430
 Planning time: 1262.160 ms
 Execution time: 159899.840 ms
(6 rows)

The foreign table was created using the query option instead of table option, if that matters at all how the query against the foreign table performs.

Could this be caused by poorly created indices on the remote table?

I've rebuilt the indices in question and the queries run fine against the sql server. It's only slow through the fdw.

Is there an option or some other way to force the usage of the index, or is it already using the index? I can't really tell from the explain.

I had read somewhere to try increasing the initial block size setting in the freetds.conf file, but that didn't seem to have any effect on this query.

Any suggestions are appreciated.

Thanks,

-Don

Ctrl+C doesn't cancel a query in psql

Ctrl+C doesn't cancel a query running against tds_fdw in psql. I'm guessing any program linked with libpq will not be able to cancel a query running against tds_fdw.

I wonder if pg_cancel_backend() and pg_terminate_backend() also have issues cancelling a running query?

I might need to write an interrupt handler for tds_fdw using dbsetinterrupt().

INSERT: munmap_chunk(): invalid pointer: 0x00007fb3366fb5d0

Hi,

On a few tables I'm getting this error that causes postgres 9.3.4 to crash and restart, however, I'm not sure if this is a problem with tds_fdw or with freetds.

Please let me know if I can provide anything else.

Thanks!

2014-06-09 08:35:47 PDT [localhost(52660)] LOG: statement: insert into "Version" ("TelephonyVersionId","VersionDescription","VersionDownloadServer","VersionId","VersionIsDefault","VersionJNLPCodeBase","VersionJNLPDescription","VersionJNLPLive","VersionJNLPLivePath","VersionJNLPOffline","VersionJNLPOfflinePath","VersionJNLPPlayback","VersionJNLPPlaybackPath","VersionJNLPTitle","VersionJNLPVendor","VersionMajor","VersionMaxFilmersLimit","VersionMaxTalkersLimit","VersionMaxVideoBitRate","VersionMaxVideoFrameRate","VersionMayBeUsedForMigrations","VersionMinor","VersionMobileProtocol","VersionName","VersionRecordingURL","VersionSessionXML","VersionSessionXMLPath") (select "TelephonyVersionId","VersionDescription","VersionDownloadServer","VersionId","VersionIsDefault","VersionJNLPCodeBase","VersionJNLPDescription","VersionJNLPLive","VersionJNLPLivePath","VersionJNLPOffline","VersionJNLPOfflinePath","VersionJNLPPlayback","VersionJNLPPlaybackPath","VersionJNLPTitle","VersionJNLPVendor","VersionMajor","VersionMaxFilmersLimit","VersionMaxTalkersLimit","VersionMaxVideoBitRate","VersionMaxVideoFrameRate","VersionMayBeUsedForMigrations","VersionMinor","VersionMobileProtocol","VersionName","VersionRecordingURL","VersionSessionXML","VersionSessionXMLPath" from from_sybase_version limit 100);
*** glibc detected *** postgres: postgres sas localhost(52660) INSERT: munmap_chunk(): invalid pointer: 0x00007fb3366fb5d0 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x7eb96)[0x7fb33212eb96]
/usr/lib/x86_64-linux-gnu/libsybdb.so.5(dbconvert+0x721)[0x7fb3255701b1]
/usr/lib/postgresql/9.3/lib/tds_fdw.so(+0x1b58)[0x7fb3257c5b58]
postgres: postgres sas localhost(52660) INSERT(+0x1de7c4)[0x7fb3342757c4]
postgres: postgres sas localhost(52660) INSERT(ExecScan+0x2ae)[0x7fb3342601fe]
postgres: postgres sas localhost(52660) INSERT(ExecProcNode+0x1a8)[0x7fb334258e38]
postgres: postgres sas localhost(52660) INSERT(ExecLimit+0xa8)[0x7fb33426c838]
postgres: postgres sas localhost(52660) INSERT(ExecProcNode+0x98)[0x7fb334258d28]
postgres: postgres sas localhost(52660) INSERT(ExecScan+0x196)[0x7fb3342600e6]
postgres: postgres sas localhost(52660) INSERT(ExecProcNode+0x1f8)[0x7fb334258e88]
postgres: postgres sas localhost(52660) INSERT(ExecModifyTable+0xdd)[0x7fb33426f28d]
postgres: postgres sas localhost(52660) INSERT(ExecProcNode+0x288)[0x7fb334258f18]
postgres: postgres sas localhost(52660) INSERT(standard_ExecutorRun+0x137)[0x7fb334256227]
postgres: postgres sas localhost(52660) INSERT(+0x2a3f64)[0x7fb33433af64]
postgres: postgres sas localhost(52660) INSERT(+0x2a419b)[0x7fb33433b19b]
postgres: postgres sas localhost(52660) INSERT(PortalRun+0x2ad)[0x7fb33433be6d]
postgres: postgres sas localhost(52660) INSERT(PostgresMain+0x92c)[0x7fb33433808c]
postgres: postgres sas localhost(52660) INSERT(PostmasterMain+0x1acd)[0x7fb3342f387d]
postgres: postgres sas localhost(52660) INSERT(main+0x7bc)[0x7fb33412850c]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7fb3320d176d]
postgres: postgres sas localhost(52660) INSERT(+0x91591)[0x7fb334128591]
======= Memory map: ========
7fb324709000-7fb32471e000 r-xp 00000000 08:01 786479 /lib/x86_64-linux-gnu/libgcc_s.so.1
7fb32471e000-7fb32491d000 ---p 00015000 08:01 786479 /lib/x86_64-linux-gnu/libgcc_s.so.1
7fb32491d000-7fb32491e000 r--p 00014000 08:01 786479 /lib/x86_64-linux-gnu/libgcc_s.so.1
7fb32491e000-7fb32491f000 rw-p 00015000 08:01 786479 /lib/x86_64-linux-gnu/libgcc_s.so.1
7fb32491f000-7fb324922000 r-xp 00000000 08:01 918460 /usr/lib/x86_64-linux-gnu/gconv/UTF-16.so
7fb324922000-7fb324b21000 ---p 00003000 08:01 918460 /usr/lib/x86_64-linux-gnu/gconv/UTF-16.so
7fb324b21000-7fb324b22000 r--p 00002000 08:01 918460 /usr/lib/x86_64-linux-gnu/gconv/UTF-16.so
7fb324b22000-7fb324b23000 rw-p 00003000 08:01 918460 /usr/lib/x86_64-linux-gnu/gconv/UTF-16.so
7fb324d26000-7fb324d30000 r-xp 00000000 08:01 786464 /lib/x86_64-linux-gnu/libnss_nis-2.15.so
7fb324d30000-7fb324f30000 ---p 0000a000 08:01 786464 /lib/x86_64-linux-gnu/libnss_nis-2.15.so
7fb324f30000-7fb324f31000 r--p 0000a000 08:01 786464 /lib/x86_64-linux-gnu/libnss_nis-2.15.so
7fb324f31000-7fb324f32000 rw-p 0000b000 08:01 786464 /lib/x86_64-linux-gnu/libnss_nis-2.15.so
7fb324f32000-7fb324f49000 r-xp 00000000 08:01 786476 /lib/x86_64-linux-gnu/libnsl-2.15.so
7fb324f49000-7fb325148000 ---p 00017000 08:01 786476 /lib/x86_64-linux-gnu/libnsl-2.15.so
7fb325148000-7fb325149000 r--p 00016000 08:01 786476 /lib/x86_64-linux-gnu/libnsl-2.15.so
7fb325149000-7fb32514a000 rw-p 00017000 08:01 786476 /lib/x86_64-linux-gnu/libnsl-2.15.so
7fb32514a000-7fb32514c000 rw-p 00000000 00:00 0
7fb32514c000-7fb325154000 r-xp 00000000 08:01 786454 /lib/x86_64-linux-gnu/libnss_compat-2.15.so
7fb325154000-7fb325353000 ---p 00008000 08:01 786454 /lib/x86_64-linux-gnu/libnss_compat-2.15.so
7fb325353000-7fb325354000 r--p 00007000 08:01 786454 /lib/x86_64-linux-gnu/libnss_compat-2.15.so
7fb325354000-7fb325355000 rw-p 00008000 08:01 786454 /lib/x86_64-linux-gnu/libnss_compat-2.15.so
7fb325355000-7fb32535c000 r-xp 00000000 08:01 786463 /lib/x86_64-linux-gnu/librt-2.15.so
7fb32535c000-7fb32555b000 ---p 00007000 08:01 786463 /lib/x86_64-linux-gnu/librt-2.15.so
7fb32555b000-7fb32555c000 r--p 00006000 08:01 786463 /lib/x86_64-linux-gnu/librt-2.15.so
7fb32555c000-7fb32555d000 rw-p 00007000 08:01 786463 /lib/x86_64-linux-gnu/librt-2.15.so
7fb32555d000-7fb3255bf000 r-xp 00000000 08:01 926672 /usr/lib/x86_64-linux-gnu/libsybdb.so.5.0.0
7fb3255bf000-7fb3257bf000 ---p 00062000 08:01 926672 /usr/lib/x86_64-linux-gnu/libsybdb.so.5.0.0
7fb3257bf000-7fb3257c3000 r--p 00062000 08:01 926672 /usr/lib/x86_64-linux-gnu/libsybdb.so.5.0.0
7fb3257c3000-7fb3257c4000 rw-p 00066000 08:01 926672 /usr/lib/x86_64-linux-gnu/libsybdb.so.5.0.0
7fb3257c4000-7fb3257c9000 r-xp 00000000 08:01 933053 /usr/lib/postgresql/9.3/lib/tds_fdw.so
7fb3257c9000-7fb3259c8000 ---p 00005000 08:01 933053 /usr/lib/postgresql/9.3/lib/tds_fdw.so
7fb3259c8000-7fb3259c9000 r--p 00004000 08:01 933053 /usr/lib/postgresql/9.3/lib/tds_fdw.so
7fb3259c9000-7fb3259ca000 rw-p 00005000 08:01 933053 /usr/lib/postgresql/9.3/lib/tds_fdw.so
7fb3259ca000-7fb32e6ba000 rw-s 00000000 00:04 11615 /dev/zero (deleted)
7fb32e6ba000-7fb32e6c6000 r-xp 00000000 08:01 786460 /lib/x86_64-linux-gnu/libnss_files-2.15.so
7fb32e6c6000-7fb32e8c5000 ---p 0000c000 08:01 786460 /lib/x86_64-linux-gnu/libnss_files-2.15.so
7fb32e8c5000-7fb32e8c6000 r--p 0000b000 08:01 786460 /lib/x86_64-linux-gnu/libnss_files-2.15.so
7fb32e8c6000-7fb32e8c7000 rw-p 0000c000 08:01 786460 /lib/x86_64-linux-gnu/libnss_files-2.15.so
7fb32e8c7000-7fb32eb90000 r--p 00000000 08:01 925103 /usr/lib/locale/locale-archive
7fb32eb90000-7fb32eb99000 r-xp 00000000 08:01 786453 /lib/x86_64-linux-gnu/libcrypt-2.15.so
7fb32eb99000-7fb32ed99000 ---p 00009000 08:01 786453 /lib/x86_64-linux-gnu/libcrypt-2.15.so
7fb32ed99000-7fb32ed9a000 r--p 00009000 08:01 786453 /lib/x86_64-linux-gnu/libcrypt-2.15.so
7fb32ed9a000-7fb32ed9b000 rw-p 0000a000 08:01 786453 /lib/x86_64-linux-gnu/libcrypt-2.15.so
7fb32ed9b000-7fb32edc9000 rw-p 00000000 00:00 0
7fb32edc9000-7fb32ee67000 r-xp 00000000 08:01 923114 /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
7fb32ee67000-7fb32f067000 ---p 0009e000 08:01 923114 /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
7fb32f067000-7fb32f069000 r--p 0009e000 08:01 923114 /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
7fb32f069000-7fb32f06b000 rw-p 000a0000 08:01 923114 /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
7fb32f06b000-7fb32f06c000 rw-p 00000000 00:00 0
7fb32f06c000-7fb32f0b1000 r-xp 00000000 08:01 932089 /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
7fb32f0b1000-7fb32f2b1000 ---p 00045000 08:01 932089 /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
7fb32f2b1000-7fb32f2b3000 r--p 00045000 08:01 932089 /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
7fb32f2b3000-7fb32f2b5000 rw-p 00047000 08:01 932089 /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
7fb32f2b5000-7fb32f2b6000 rw-p 00000000 00:00 0
7fb32f2b6000-7fb32f2c4000 r-xp 00000000 08:01 932083 /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
7fb32f2c4000-7fb32f4c3000 ---p 0000e000 08:01 932083 /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
7fb32f4c3000-7fb32f4c4000 r--p 0000d000 08:01 932083 /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
7fb32f4c4000-7fb32f4c5000 rw-p 0000e000 08:01 932083 /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
7fb32f4c5000-7fb32f4ed000 r-xp 00000000 08:01 932086 /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
7fb32f4ed000-7fb32f6ec000 ---p 00028000 08:01 932086 /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
7fb32f6ec000-7fb32f6ed000 r--p 00027000 08:01 932086 /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
7fb32f6ed000-7fb32f6ee000 rw-p 00028000 08:01 932086 /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
7fb32f6ee000-7fb32f6f1000 r-xp 00000000 08:01 786853 /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
7fb32f6f1000-7fb32f8f0000 ---p 00003000 08:01 786853 /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
7fb32f8f0000-7fb32f8f1000 r--p 00002000 08:01 786853 /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
7fb32f8f1000-7fb32f8f2000 rw-p 00003000 08:01 786853 /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
7fb32f8f2000-7fb32f903000 r-xp 00000000 08:01 932058 /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
7fb32f903000-7fb32fb02000 ---p 00011000 08:01 932058 /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
7fb32fb02000-7fb32fb03000 r--p 00010000 08:01 932058 /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
7fb32fb03000-7fb32fb04000 rw-p 00011000 08:01 932058 /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
7fb32fb04000-7fb32fb14000 r-xp 00000000 08:01 932060 /usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.12
7fb32fb14000-7fb32fd13000 ---p 00010000 08:01 932060 /usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.12
7fb32fd13000-7fb32fd14000 r--p 0000f000 08:01 932060 /usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.12
7fb32fd14000-7fb32fd15000 rw-p 00010000 08:01 932060 /usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.12
7fb32fd15000-7fb32fd29000 r-xp 00000000 08:01 932052 /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
7fb32fd29000-7fb32ff28000 ---p 00014000 08:01 932052 /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
7fb32ff28000-7fb32ff29000 r--p 00013000 08:01 932052 /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
7fb32ff29000-7fb32ff2a000 rw-p 00014000 08:01 932052 /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
7fb32ff2a000-7fb32ff5b000 r-xp 00000000 08:01 932080 /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
7fb32ff5b000-7fb33015b000 ---p 00031000 08:01 932080 /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
7fb33015b000-7fb33015c000 r--p 00031000 08:01 932080 /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
7fb33015c000-7fb33015d000 rw-p 00032000 08:01 932080 /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
7fb33015d000-7fb33015e000 rw-p 00000000 00:00 0
7fb33015e000-7fb3301f9000 r-xp 00000000 08:01 932055 /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
7fb3301f9000-7fb3303f8000 ---p 0009b000 08:01 932055 /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
7fb3303f8000-7fb3303fa000 r--p 0009a000 08:01 932055 /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
7fb3303fa000-7fb3303fe000 rw-p 0009c000 08:01 932055 /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
7fb3303fe000-7fb33047e000 r-xp 00000000 08:01 932092 /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
7fb33047e000-7fb33067e000 ---p 00080000 08:01 932092 /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
7fb33067e000-7fb330680000 r--p 00080000 08:01 932092 /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
7fb330680000-7fb330684000 rw-p 00082000 08:01 932092 /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
7fb330684000-7fb33068a000 r-xp 00000000 08:01 932095 /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
7fb33068a000-7fb330889000 ---p 00006000 08:01 932095 /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
7fb330889000-7fb33088a000 r--p 00005000 08:01 932095 /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
7fb33088a000-7fb33088b000 rw-p 00006000 08:01 932095 /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
7fb33088b000-7fb330905000 r-xp 00000000 08:01 786968 /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
7fb330905000-7fb330b05000 ---p 0007a000 08:01 786968 /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
7fb330b05000-7fb330b06000 r--p 0007a000 08:01 786968 /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
7fb330b06000-7fb330b09000 rw-p 0007b000 08:01 786968 /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
7fb330b09000-7fb330bbd000 r-xp 00000000 08:01 919149 /usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.8
7fb330bbd000-7fb330dbd000 ---p 000b4000 08:01 919149 /usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.8
7fb330dbd000-7fb330dc3000 r--p 000b4000 08:01 919149 /usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.8
7fb330dc3000-7fb330dc4000 rw-p 000ba000 08:01 919149 /usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.8
7fb330dc4000-7fb330dc5000 rw-p 00000000 00:00 0
7fb330dc5000-7fb330dff000 r-xp 00000000 08:01 932098 /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
7fb330dff000-7fb330fff000 ---p 0003a000 08:01 932098 /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
7fb330fff000-7fb331000000 r--p 0003a000 08:01 932098 /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
7fb331000000-7fb331003000 rw-p 0003b000 08:01 932098 /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
7fb331003000-7fb33101d000 r-xp 00000000 08:01 932103 /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
7fb33101d000-7fb33121c000 ---p 0001a000 08:01 932103 /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
7fb33121c000-7fb33121d000 r--p 00019000 08:01 932103 /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
7fb33121d000-7fb33121e000 rw-p 0001a000 08:01 932103 /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
7fb33121e000-7fb33122b000 r-xp 00000000 08:01 932106 /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.1
7fb33122b000-7fb33142a000 ---p 0000d000 08:01 932106 /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.1
7fb33142a000-7fb33142b000 r--p 0000c000 08:01 932106 /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.1
7fb33142b000-7fb33142c000 rw-p 0000d000 08:01 932106 /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.1
7fb33142c000-7fb331444000 r-xp 00000000 08:01 786465 /lib/x86_64-linux-gnu/libpthread-2.15.so
7fb331444000-7fb331643000 ---p 00018000 08:01 786465 /lib/x86_64-linux-gnu/libpthread-2.15.so
7fb331643000-7fb331644000 r--p 00017000 08:01 786465 /lib/x86_64-linux-gnu/libpthread-2.15.so
7fb331644000-7fb331645000 rw-p 00018000 08:01 786465 /lib/x86_64-linux-gnu/libpthread-2.15.so
7fb331645000-7fb331649000 rw-p 00000000 00:00 0
7fb331649000-7fb331661000 r-xp 00000000 08:01 786461 /lib/x86_64-linux-gnu/libresolv-2.15.so
7fb331661000-7fb331861000 ---p 00018000 08:01 786461 /lib/x86_64-linux-gnu/libresolv-2.15.so
7fb331861000-7fb331862000 r--p 00018000 08:01 786461 /lib/x86_64-linux-gnu/libresolv-2.15.so
7fb331862000-7fb331863000 rw-p 00019000 08:01 786461 /lib/x86_64-linux-gnu/libresolv-2.15.so
7fb331863000-7fb331865000 rw-p 00000000 00:00 0
7fb331865000-7fb331868000 r-xp 00000000 08:01 786972 /lib/x86_64-linux-gnu/libkeyutils.so.1.4
7fb331868000-7fb331a67000 ---p 00003000 08:01 786972 /lib/x86_64-linux-gnu/libkeyutils.so.1.4
7fb331a67000-7fb331a68000 r--p 00002000 08:01 786972 /lib/x86_64-linux-gnu/libkeyutils.so.1.4
7fb331a68000-7fb331a69000 rw-p 00003000 08:01 786972 /lib/x86_64-linux-gnu/libkeyutils.so.1.4
7fb331a69000-7fb331a70000 r-xp 00000000 08:01 932066 /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
7fb331a70000-7fb331c6f000 ---p 00007000 08:01 932066 /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
7fb331c6f000-7fb331c70000 r--p 00006000 08:01 932066 /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
7fb331c70000-7fb331c71000 rw-p 00007000 08:01 932066 /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
7fb331c71000-7fb331c96000 r-xp 00000000 08:01 932068 /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
7fb331c96000-7fb331e96000 ---p 00025000 08:01 932068 /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
7fb331e96000-7fb331e97000 r--p 00025000 08:01 932068 /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
7fb331e97000-7fb331e98000 rw-p 00026000 08:01 932068 /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
7fb331e98000-7fb331e99000 rw-p 00000000 00:00 0
7fb331e99000-7fb331eaf000 r-xp 00000000 08:01 786665 /lib/x86_64-linux-gnu/libz.so.1.2.3.4
7fb331eaf000-7fb3320ae000 ---p 00016000 08:01 786665 /lib/x86_64-linux-gnu/libz.so.1.2.3.4
7fb3320ae000-7fb3320af000 r--p 00015000 08:01 786665 /lib/x86_64-linux-gnu/libz.so.1.2.3.4
7fb3320af000-7fb3320b0000 rw-p 00016000 08:01 786665 /lib/x86_64-linux-gnu/libz.so.1.2.3.4
7fb3320b0000-7fb332265000 r-xp 00000000 08:01 786452 /lib/x86_64-linux-gnu/libc-2.15.so
7fb332265000-7fb332465000 ---p 001b5000 08:01 786452 /lib/x86_64-linux-gnu/libc-2.15.so
7fb332465000-7fb332469000 r--p 001b5000 08:01 786452 /lib/x86_64-linux-gnu/libc-2.15.so
7fb332469000-7fb33246b000 rw-p 001b9000 08:01 786452 /lib/x86_64-linux-gnu/libc-2.15.so
7fb33246b000-7fb332470000 rw-p 00000000 00:00 0
7fb332470000-7fb3324bb000 r-xp 00000000 08:01 932105 /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.8.1
7fb3324bb000-7fb3326ba000 ---p 0004b000 08:01 932105 /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.8.1
7fb3326ba000-7fb3326bc000 r--p 0004a000 08:01 932105 /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.8.1
7fb3326bc000-7fb3326bd000 rw-p 0004c000 08:01 932105 /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.8.1
7fb3326bd000-7fb3326bf000 rw-p 00000000 00:00 0
7fb3326bf000-7fb3327ba000 r-xp 00000000 08:01 786467 /lib/x86_64-linux-gnu/libm-2.15.so
7fb3327ba000-7fb3329b9000 ---p 000fb000 08:01 786467 /lib/x86_64-linux-gnu/libm-2.15.so
7fb3329b9000-7fb3329ba000 r--p 000fa000 08:01 786467 /lib/x86_64-linux-gnu/libm-2.15.so
7fb3329ba000-7fb3329bb000 rw-p 000fb000 08:01 786467 /lib/x86_64-linux-gnu/libm-2.15.so
7fb3329bb000-7fb3329bd000 r-xp 00000000 08:01 786471 /lib/x86_64-linux-gnu/libdl-2.15.so
7fb3329bd000-7fb332bbd000 ---p 00002000 08:01 786471 /lib/x86_64-linux-gnu/libdl-2.15.so
7fb332bbd000-7fb332bbe000 r--p 00002000 08:01 786471 /lib/x86_64-linux-gnu/libdl-2.15.so
7fb332bbe000-7fb332bbf000 rw-p 00003000 08:01 786471 /lib/x86_64-linux-gnu/libdl-2.15.so
7fb332bbf000-7fb332bfa000 r-xp 00000000 08:01 932076 /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
7fb332bfa000-7fb332dfa000 ---p 0003b000 08:01 932076 /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
7fb332dfa000-7fb332dfb000 r--p 0003b000 08:01 932076 /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
7fb332dfb000-7fb332dfd000 rw-p 0003c000 08:01 932076 /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
7fb332dfd000-7fb332e00000 r-xp 00000000 08:01 786447 /lib/x86_64-linux-gnu/libcom_err.so.2.1
7fb332e00000-7fb332fff000 ---p 00003000 08:01 786447 /lib/x86_64-linux-gnu/libcom_err.so.2.1
7fb332fff000-7fb333000000 r--p 00002000 08:01 786447 /lib/x86_64-linux-gnu/libcom_err.so.2.1
7fb333000000-7fb333001000 rw-p 00003000 08:01 786447 /lib/x86_64-linux-gnu/libcom_err.so.2.1
7fb333001000-7fb3330c5000 r-xp 00000000 08:01 932074 /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
7fb3330c5000-7fb3332c4000 ---p 000c4000 08:01 932074 /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
7fb3332c4000-7fb3332ce000 r--p 000c3000 08:01 932074 /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
7fb3332ce000-7fb3332cf000 rw-p 000cd000 08:01 932074 /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
7fb3332cf000-7fb333480000 r-xp 00000000 08:01 786505 /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7fb333480000-7fb333680000 ---p 001b1000 08:01 786505 /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7fb333680000-7fb33369b000 r--p 001b1000 08:01 786505 /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7fb33369b000-7fb3336a6000 rw-p 001cc000 08:01 786505 /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7fb3336a6000-7fb3336aa000 rw-p 00000000 00:00 0
7fb3336aa000-7fb3336fe000 r-xp 00000000 08:01 786506 /lib/x86_64-linux-gnu/libssl.so.1.0.0
7fb3336fe000-7fb3338fe000 ---p 00054000 08:01 786506 /lib/x86_64-linux-gnu/libssl.so.1.0.0
7fb3338fe000-7fb333901000 r--p 00054000 08:01 786506 /lib/x86_64-linux-gnu/libssl.so.1.0.0
7fb333901000-7fb333907000 rw-p 00057000 08:01 786506 /lib/x86_64-linux-gnu/libssl.so.1.0.0
7fb333907000-7fb333908000 rw-p 00000000 00:00 0
7fb333908000-7fb333914000 r-xp 00000000 08:01 786519 /lib/x86_64-linux-gnu/libpam.so.0.83.0
7fb333914000-7fb333b14000 ---p 0000c000 08:01 786519 /lib/x86_64-linux-gnu/libpam.so.0.83.0
7fb333b14000-7fb333b15000 r--p 0000c000 08:01 786519 /lib/x86_64-linux-gnu/libpam.so.0.83.0
7fb333b15000-7fb333b16000 rw-p 0000d000 08:01 786519 /lib/x86_64-linux-gnu/libpam.so.0.83.0
7fb333b16000-7fb333c67000 r-xp 00000000 08:01 932211 /usr/lib/x86_64-linux-gnu/libxml2.so.2.7.8
7fb333c67000-7fb333e67000 ---p 00151000 08:01 932211 /usr/lib/x86_64-linux-gnu/libxml2.so.2.7.8
7fb333e67000-7fb333e6f000 r--p 00151000 08:01 932211 /usr/lib/x86_64-linux-gnu/libxml2.so.2.7.8
7fb333e6f000-7fb333e71000 rw-p 00159000 08:01 932211 /usr/lib/x86_64-linux-gnu/libxml2.so.2.7.8
7fb333e71000-7fb333e72000 rw-p 00000000 00:00 0
7fb333e72000-7fb333e94000 r-xp 00000000 08:01 786468 /lib/x86_64-linux-gnu/ld-2.15.so
7fb333fb1000-7fb333fb8000 r--s 00000000 08:01 920435 /usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache
7fb333fb8000-7fb33407a000 rw-p 00000000 00:00 0
7fb33407a000-7fb33408b000 rw-p 00000000 00:00 0
7fb33408f000-7fb334091000 rw-p 00000000 00:00 0
7fb334091000-7fb334092000 rw-s 00000000 00:04 163842 /SYSV0052ea91 (deleted)
7fb334092000-7fb334094000 rw-p 00000000 00:00 0
7fb334094000-7fb334095000 r--p 00022000 08:01 786468 /lib/x86_64-linux-gnu/ld-2.15.so
7fb334095000-7fb334097000 rw-p 00023000 08:01 786468 /lib/x86_64-linux-gnu/ld-2.15.so
7fb334097000-7fb3345d0000 r-xp 00000000 08:01 926380 /usr/lib/postgresql/9.3/bin/postgres
7fb3347cf000-7fb3347ed000 r--p 00538000 08:01 926380 /usr/lib/postgresql/9.3/bin/postgres
7fb3347ed000-7fb3347fa000 rw-p 00556000 08:01 926380 /usr/lib/postgresql/9.3/bin/postgres
7fb3347fa000-7fb334855000 rw-p 00000000 00:00 0
7fb3364b1000-7fb33650f000 rw-p 00000000 00:00 0 [heap]
7fb33650f000-7fb33673f000 rw-p 00000000 00:00 0 [heap]
7fff92d42000-7fff92d66000 rw-p 00000000 00:00 0 [stack]
7fff92d73000-7fff92d75000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
2014-06-09 08:35:49 PDT [] LOG: server process (PID 44976) was terminated by signal 6: Aborted
2014-06-09 08:35:49 PDT [] DETAIL: Failed process was running: insert into "Version" ("TelephonyVersionId","VersionDescription","VersionDownloadServer","VersionId","VersionIsDefault","VersionJNLPCodeBase","VersionJNLPDescription","VersionJNLPLive","VersionJNLPLivePath","VersionJNLPOffline","VersionJNLPOfflinePath","VersionJNLPPlayback","VersionJNLPPlaybackPath","VersionJNLPTitle","VersionJNLPVendor","VersionMajor","VersionMaxFilmersLimit","VersionMaxTalkersLimit","VersionMaxVideoBitRate","VersionMaxVideoFrameRate","VersionMayBeUsedForMigrations","VersionMinor","VersionMobileProtocol","VersionName","VersionRecordingURL","VersionSessionXML","VersionSessionXMLPath") (select "TelephonyVersionId","VersionDescription","VersionDownloadServer","VersionId","VersionIsDefault","VersionJNLPCodeBase","VersionJNLPDescription","VersionJNLPLive","VersionJNLPLivePath","VersionJNLPOffline","VersionJNLPOfflinePath","VersionJNLPPlayback","VersionJNLPPlaybackPath","VersionJNLPTitle","VersionJNLPVendor","VersionMajor","VersionMaxFilmersLimit","VersionMaxTalkersLimit","VersionMaxVideoBitRate"
2014-06-09 08:35:49 PDT [] LOG: terminating any other active server processes
2014-06-09 08:35:49 PDT [] WARNING: terminating connection because of crash of another server process
2014-06-09 08:35:49 PDT [] DETAIL: The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory.
2014-06-09 08:35:49 PDT [] HINT: In a moment you should be able to reconnect to the database and repeat your command.
2014-06-09 08:35:49 PDT [] LOG: archiver process (PID 1947) exited with exit code 1
2014-06-09 08:35:49 PDT [] LOG: all server processes terminated; reinitializing
2014-06-09 08:35:49 PDT [] LOG: database system was interrupted; last known up at 2014-06-09 07:22:07 PDT
2014-06-09 08:35:49 PDT [] LOG: database system was not properly shut down; automatic recovery in progress
2014-06-09 08:35:49 PDT [] LOG: redo starts at 0/4E000090
2014-06-09 08:35:49 PDT [] LOG: record with zero length at 0/4E096C90
2014-06-09 08:35:49 PDT [] LOG: redo done at 0/4E096C60
2014-06-09 08:35:49 PDT [] LOG: last completed transaction was at log time 2014-06-09 08:35:47.572373-07
2014-06-09 08:35:49 PDT [] LOG: checkpoint starting: end-of-recovery immediate
2014-06-09 08:35:49 PDT [] LOG: checkpoint complete: wrote 92 buffers (0.6%); 0 transaction log file(s) added, 0 removed, 2 recycled; write=0.001 s, sync=0.023 s, total=0.028 s; sync files=52, longest=0.000 s, average=0.000 s
2014-06-09 08:35:49 PDT [] LOG: database system is ready to accept connections
2014-06-09 08:35:49 PDT [] LOG: autovacuum launcher started

Memory leak when selecting a large table

I have a large table in sql server 2008 r2, 57,731,898 rows by 35 columns. The following query causes my PostgreSQL service to crash because the server runs out of memory. The server is running CentOS 7 x64, PostgreSQL 9.4.4, tds_fdw 1.0.3, FreeTDS 0.95, and 256 GB of RAM.

Orders is a native table with the same columns as the tds_fdw-backed foreign table, foreign_orders.

insert into orders
select *
from foreign_orders

Problems executing make USE_PGXS=1 on Ubuntu 14.04

Following guide for Postgresql9.3 on ubuntu I am getting an error executing

make USE_PGXS=1

The output is:

gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -I/usr/include/mit-krb5 -fPIC -pie -DLINUX_OOM_SCORE_ADJ=0 -fno-omit-frame-pointer -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -fpic -I. -I./ -I/usr/include/postgresql/9.3/server -I/usr/include/postgresql/internal -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include/tcl8.6  -c -o src/tds_fdw.o src/tds_fdw.c
src/tds_fdw.c:52:22: fatal error: sybfront.h: No such file or directory
 #include <sybfront.h>
                      ^
compilation terminated.
make: *** [src/tds_fdw.o] Error 1

How can i fix this? What is wrong here?

Continue the error

ldd /opt/PostgreSQL/9.1/lib/postgresql/tds_fdw.so
linux-gate.so.1 => (0xb7749000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb757e000)
/lib/ld-linux.so.2 (0xb774a000)

Column type date mapping

Would be nice to have automatic discovery/mappings/conversion for (:?small)datetime fields.
Maybe add a new option for default date conversion field for each table column.

column definition OPTION ( 'dateformat', 'Mon DD YYYY HH:MI:SS:MSAM' )

With this new option, then the C code executor could inquiry postgresql foreign table definition and invoke
the postgresql to_date('Apr 10 2015 05:02:00:000AM', 'Mon DD YYYY HH:MI:SS:MSAM' ) to convert mssql format to native postgresql format.

Suggesting this because when creating a foreign table with date field, cause invalid data error during execution. And adding this option would make conversion as simple as definition the format masks.

ERROR: invalid input for integer: ""

Hi,

I've successfully compiled and installed tds_fdw but I'm getting an odd error when I try to access a foreign table.
sas=# create server sybase foreign data wrapper tds_fdw options (servername '10.15.2.70', port '5000');
CREATE SERVER
sas=# create user mapping for postgres server sybase options (username 'sa', password 'not1common');
CREATE USER MAPPING
sas=# create foreign table if not exists sybase_table ("ApiSessionId" bigint,"ApiSessionRemoteId" bigint,"ApiSessionCreatorUID" character varying(32),"ApiSessionUserNotes" text,"ApiSessionModNotes" text,"ApiSessionIsDeleted" boolean,"AdministratorLoginId" bigint,"MeetingSessionId" bigint) server sybase options(database 'sas_db', query 'select * from web_app.ApiSession');
CREATE FOREIGN TABLE
sas=# select * from sybase_table limit 1;
NOTICE: DB-Library notice: Msg #: 5701, Msg state: 2, Msg: Changed database context to 'master'.
, Server: vastg_db, Process: , Line: 0, Level: 0
NOTICE: DB-Library notice: Msg #: 5701, Msg state: 1, Msg: Changed database context to 'sas_db'.
, Server: vastg_db, Process: , Line: 1, Level: 0
NOTICE: DB-Library notice: Msg #: 5701, Msg state: 2, Msg: Changed database context to 'master'.
, Server: vastg_db, Process: , Line: 0, Level: 0
NOTICE: DB-Library notice: Msg #: 5701, Msg state: 1, Msg: Changed database context to 'sas_db'.
, Server: vastg_db, Process: , Line: 1, Level: 0
ERROR: invalid input syntax for integer: ""

Here's the freetds log of this transaction. In the tcpdump-like section you can read the data for that record, and at least the second column is correct.

postgres@bitarena:~$ cat /tmp/freetds.log
15:45:51.071682 34287 (log.c:196):Starting log file for FreeTDS 0.91
on 2014-05-28 15:45:51 with debug flags 0xffff.
15:45:51.071736 34287 (iconv.c:330):tds_iconv_open(0x7f4ae5eccf70, UTF-8)
15:45:51.071925 34287 (iconv.c:187):local name for ISO-8859-1 is ISO-8859-1
15:45:51.071943 34287 (iconv.c:187):local name for UTF-8 is UTF-8
15:45:51.071951 34287 (iconv.c:187):local name for UCS-2LE is UCS-2LE
15:45:51.071959 34287 (iconv.c:187):local name for UCS-2BE is UCS-2BE
15:45:51.071967 34287 (iconv.c:349):setting up conversions for client charset "UTF-8"
15:45:51.071974 34287 (iconv.c:351):preparing iconv for "UTF-8" <-> "UCS-2LE" conversion
15:45:51.071992 34287 (iconv.c:391):preparing iconv for "ISO-8859-1" <-> "ISO-8859-1" conversion
15:45:51.072001 34287 (iconv.c:394):tds_iconv_open: done
15:45:51.072018 34287 (net.c:205):Connecting to 10.15.2.70 port 5000 (TDS version 4.2)
15:45:51.072229 34287 (net.c:270):tds_open_socket: connect(2) returned "Operation now in progress"
15:45:51.187342 34287 (net.c:310):tds_open_socket() succeeded
15:45:51.187427 34287 (util.c:156):Changed query state from DEAD to IDLE
15:45:51.187457 34287 (net.c:741):Sending packet
0000 02 00 02 00 00 00 00 00-62 69 74 61 72 65 6e 61 |........ bitarena|
0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0020 00 00 00 00 00 00 08 73-61 00 00 00 00 00 00 00 |.......s a.......|
0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0040 00 00 00 00 00 02 6e 6f-74 31 63 6f 6d 6d 6f 6e |......no t1common|
0050 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0060 00 00 00 00 0a 33 34 32-38 37 00 00 00 00 00 00 |.....342 87......|
0070 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0080 00 00 00 05 03 01 06 0a-09 01 00 00 00 00 02 00 |........ ........|
0090 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
00a0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
00b0 00 00 00 31 30 2e 31 35-2e 32 2e 37 30 3a 35 30 |...10.15 .2.70:50|
00c0 30 30 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |00...... ........|
00d0 00 0f 6e 6f 74 31 63 6f-6d 6d 6f 6e 00 00 00 00 |..not1co mmon....|
00e0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
00f0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0100 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0110 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0120 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0130 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0140 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0150 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0160 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0170 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0180 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0190 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
01a0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
01b0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
01c0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
01d0 00 0a 04 02 00 00 44 42-2d 4c 69 62 72 61 72 79 |......DB -Library|
01e0 0a 00 00 00 00 00 0d 11-75 73 5f 65 6e 67 6c 69 |........ us_engli|
01f0 73 68 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |sh...... ........|

15:45:51.187751 34287 (net.c:741):Sending packet
0000 02 01 00 4c 00 00 00 00-00 00 00 00 00 00 0a 00 |...L.... ........|
0010 00 00 00 00 00 00 00 00-00 00 00 00 00 75 74 66 |........ .....utf|
0020 38 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |8....... ........|
0030 00 00 00 00 00 00 00 00-00 00 00 04 01 35 31 32 |........ .....512|
0040 00 00 00 03 00 00 00 00-00 00 00 00 |........ ....|

15:45:51.187930 34287 (token.c:328):tds_process_login_tokens()
15:45:51.314519 34287 (net.c:555):Received header
0000 04 01 00 70 00 00 00 00- |...p....|

15:45:51.314647 34287 (net.c:609):Received packet
0000 04 01 00 70 00 00 00 00-e3 0f 00 01 06 6d 61 73 |...p.... .....mas|
0010 74 65 72 06 6d 61 73 74-65 72 ab 3a 00 45 16 00 |ter.mast er.:.E..|
0020 00 02 00 26 00 43 68 61-6e 67 65 64 20 64 61 74 |...&.Cha nged dat|
0030 61 62 61 73 65 20 63 6f-6e 74 65 78 74 20 74 6f |abase co ntext to|
0040 20 27 6d 61 73 74 65 72-27 2e 0a 08 76 61 73 74 | 'master '...vast|
0050 67 5f 64 62 00 00 00 ad-0d 00 01 04 02 00 00 03 |g_db.... ........|
0060 41 53 45 0f 07 00 00 fd-00 00 02 00 33 00 00 00 |ASE..... ....3...|

15:45:51.314718 34287 (token.c:337):looking for login token, got e3(ENVCHANGE)
15:45:51.314742 34287 (token.c:122):tds_process_default_tokens() marker is e3(ENVCHANGE)
15:45:51.314774 34287 (dblib.c:327):db_env_chg(0x7f4ae5eccf70, 1, master, master)
15:45:51.314792 34287 (token.c:337):looking for login token, got ab(INFO)
15:45:51.314803 34287 (token.c:122):tds_process_default_tokens() marker is ab(INFO)
15:45:51.314814 34287 (token.c:2588):tds_process_msg() reading message 5701 from server
15:45:51.314831 34287 (token.c:2661):tds_process_msg() calling client msg handler
15:45:51.314843 34287 (dbutil.c:85):_dblib_handle_info_message(0x7f4ae5dd7d70, 0x7f4ae5eccf70, 0x7ffffe5d8df0)
15:45:51.314854 34287 (dbutil.c:86):msgno 5701: "Changed database context to 'master'.
"
15:45:51.315037 34287 (token.c:2674):tds_process_msg() returning TDS_SUCCEED
15:45:51.315059 34287 (token.c:337):looking for login token, got ad(LOGINACK)
15:45:51.315071 34287 (token.c:373):server reports TDS version 4.2.0.0
15:45:51.315083 34287 (token.c:375):Product name for 0x4020000 is unknown
15:45:51.315096 34287 (token.c:337):looking for login token, got fd(DONE)
15:45:51.315106 34287 (token.c:122):tds_process_default_tokens() marker is fd(DONE)
15:45:51.315122 34287 (token.c:2339):tds_process_end: more_results = 0
was_cancelled = 0
error = 0
done_count_valid = 0
15:45:51.315135 34287 (token.c:2355):tds_process_end() state set to TDS_IDLE
15:45:51.315145 34287 (token.c:2370): rows_affected = 51
15:45:51.315156 34287 (token.c:438):tds_process_login_tokens() returning TDS_SUCCEED
15:45:51.315178 34287 (mem.c:615):tds_free_all_results()
15:45:51.315190 34287 (util.c:156):Changed query state from IDLE to QUERYING
15:45:51.315205 34287 (util.c:156):Changed query state from QUERYING to PENDING
15:45:51.315216 34287 (net.c:741):Sending packet
0000 01 01 00 1b 00 00 00 00-73 65 74 20 74 65 78 74 |........ set text|
0010 73 69 7a 65 20 36 34 35-31 32 20 |size 645 12 |

15:45:51.315386 34287 (token.c:540):tds_process_tokens(0x7f4ae5eccf70, 0x7ffffe5d8f28, 0x7ffffe5d8f2c, 0x100)
15:45:51.315413 34287 (util.c:156):Changed query state from PENDING to READING
15:45:51.426652 34287 (net.c:555):Received header
0000 04 01 00 11 00 00 00 00- |........|

15:45:51.426750 34287 (net.c:609):Received packet
0000 04 01 00 11 00 00 00 00-fd 00 00 02 00 00 00 00 |........ ........|
0010 00 - |.|

15:45:51.426776 34287 (token.c:555):processing result tokens. marker is fd(DONE)
15:45:51.426792 34287 (token.c:2339):tds_process_end: more_results = 0
was_cancelled = 0
error = 0
done_count_valid = 0
15:45:51.426804 34287 (token.c:2355):tds_process_end() state set to TDS_IDLE
15:45:51.426815 34287 (util.c:156):Changed query state from READING to IDLE
15:45:51.426826 34287 (token.c:2370): rows_affected = 0
15:45:51.426837 34287 (util.c:104):logic error: cannot change query state from IDLE to PENDING
15:45:51.426847 34287 (token.c:540):tds_process_tokens(0x7f4ae5eccf70, 0x7ffffe5d8f28, 0x7ffffe5d8f2c, 0x100)
15:45:51.426859 34287 (token.c:543):tds_process_tokens() state is COMPLETED
15:45:51.426875 34287 (dblib.c:239):dblib_add_connection(0x7f4ad67d0760, 0x7f4ae5eccf70)
15:45:51.426892 34287 (dblib.c:1398):dbuse(0x7f4ae5dd5f50, sas_db)
15:45:51.426907 34287 (dblib.c:1312):dbcmd(0x7f4ae5dd5f50, use [sas_db])
15:45:51.426927 34287 (dblib.c:1319):dbcmd() bufsz = 0
15:45:51.426936 34287 (dblib.c:1369):dbsqlexec(0x7f4ae5dd5f50)
15:45:51.426977 34287 (dblib.c:6862):dbsqlsend(0x7f4ae5dd5f50)
15:45:51.426988 34287 (mem.c:615):tds_free_all_results()
15:45:51.426996 34287 (util.c:156):Changed query state from IDLE to QUERYING
15:45:51.427005 34287 (util.c:156):Changed query state from QUERYING to PENDING
15:45:51.427013 34287 (net.c:741):Sending packet
0000 01 01 00 14 00 00 00 00-75 73 65 20 5b 73 61 73 |........ use [sas|
0010 5f 64 62 5d - |_db]|

15:45:51.427191 34287 (dblib.c:4639):dbsqlok(0x7f4ae5dd5f50)
15:45:51.427211 34287 (dblib.c:4669):dbsqlok() not done, calling tds_process_tokens()
15:45:51.427219 34287 (token.c:540):tds_process_tokens(0x7f4ae5eccf70, 0x7ffffe5d9388, 0x7ffffe5d938c, 0x6914)
15:45:51.427228 34287 (util.c:156):Changed query state from PENDING to READING
15:45:51.541554 34287 (net.c:555):Received header
0000 04 01 00 60 00 00 00 00- |...`....|

15:45:51.541627 34287 (net.c:609):Received packet
0000 04 01 00 60 00 00 00 00-e3 0f 00 01 06 73 61 73 |...`.... .....sas|
0010 5f 64 62 06 6d 61 73 74-65 72 ab 3a 00 45 16 00 |_db.mast er.:.E..|
0020 00 01 00 26 00 43 68 61-6e 67 65 64 20 64 61 74 |...&.Cha nged dat|
0030 61 62 61 73 65 20 63 6f-6e 74 65 78 74 20 74 6f |abase co ntext to|
0040 20 27 73 61 73 5f 64 62-27 2e 0a 08 76 61 73 74 | 'sas_db '...vast|
0050 67 5f 64 62 00 01 00 fd-00 00 02 00 00 00 00 00 |g_db.... ........|

15:45:51.541673 34287 (token.c:555):processing result tokens. marker is e3(ENVCHANGE)
15:45:51.541683 34287 (token.c:122):tds_process_default_tokens() marker is e3(ENVCHANGE)
15:45:51.541695 34287 (dblib.c:327):db_env_chg(0x7f4ae5eccf70, 1, master, sas_db)
15:45:51.541706 34287 (token.c:555):processing result tokens. marker is ab(INFO)
15:45:51.541714 34287 (token.c:122):tds_process_default_tokens() marker is ab(INFO)
15:45:51.541722 34287 (token.c:2588):tds_process_msg() reading message 5701 from server
15:45:51.541733 34287 (token.c:2661):tds_process_msg() calling client msg handler
15:45:51.541741 34287 (dbutil.c:85):_dblib_handle_info_message(0x7f4ae5dd7d70, 0x7f4ae5eccf70, 0x7ffffe5d91e0)
15:45:51.541750 34287 (dbutil.c:86):msgno 5701: "Changed database context to 'sas_db'.
"
15:45:51.542038 34287 (token.c:2674):tds_process_msg() returning TDS_SUCCEED
15:45:51.542067 34287 (token.c:555):processing result tokens. marker is fd(DONE)
15:45:51.542078 34287 (token.c:2339):tds_process_end: more_results = 0
was_cancelled = 0
error = 0
done_count_valid = 0
15:45:51.542087 34287 (token.c:2355):tds_process_end() state set to TDS_IDLE
15:45:51.542094 34287 (util.c:156):Changed query state from READING to IDLE
15:45:51.542102 34287 (token.c:2370): rows_affected = 0
15:45:51.542109 34287 (util.c:104):logic error: cannot change query state from IDLE to PENDING
15:45:51.542125 34287 (dblib.c:4707):dbsqlok() end status is SUCCEED
15:45:51.542134 34287 (dblib.c:4718):dbsqlok() end status was success
15:45:51.542144 34287 (dblib.c:1668):dbresults(0x7f4ae5dd5f50)
15:45:51.542153 34287 (dblib.c:1674):dbresults: dbresults_state is 5 (_DB_RES_SUCCEED)
15:45:51.542161 34287 (dblib.c:1657):dbresults returning 1 (SUCCEED)
15:45:51.542169 34287 (dblib.c:5854):dbcanquery(0x7f4ae5dd5f50)
15:45:51.542176 34287 (token.c:540):tds_process_tokens(0x7f4ae5eccf70, 0x7ffffe5d93ac, (nil), 0x108)
15:45:51.542222 34287 (token.c:543):tds_process_tokens() state is COMPLETED
15:45:51.542232 34287 (dblib.c:1312):dbcmd(0x7f4ae5dd5f50, select * from web_app.ApiSession)
15:45:51.542240 34287 (dblib.c:1319):dbcmd() bufsz = 13
15:45:51.542247 34287 (dblib.c:5882):dbfreebuf(0x7f4ae5dd5f50)
15:45:51.542255 34287 (dblib.c:1369):dbsqlexec(0x7f4ae5dd5f50)
15:45:51.542263 34287 (dblib.c:6862):dbsqlsend(0x7f4ae5dd5f50)
15:45:51.542272 34287 (mem.c:615):tds_free_all_results()
15:45:51.542280 34287 (util.c:156):Changed query state from IDLE to QUERYING
15:45:51.542289 34287 (util.c:156):Changed query state from QUERYING to PENDING
15:45:51.542297 34287 (net.c:741):Sending packet
0000 01 01 00 28 00 00 00 00-73 65 6c 65 63 74 20 2a |...(.... select *|
0010 20 66 72 6f 6d 20 77 65-62 5f 61 70 70 2e 41 70 | from we b_app.Ap|
0020 69 53 65 73 73 69 6f 6e- |iSession|

15:45:51.542470 34287 (dblib.c:4639):dbsqlok(0x7f4ae5dd5f50)
15:45:51.542490 34287 (dblib.c:4669):dbsqlok() not done, calling tds_process_tokens()
15:45:51.542498 34287 (token.c:540):tds_process_tokens(0x7f4ae5eccf70, 0x7ffffe5d93e8, 0x7ffffe5d93ec, 0x6914)
15:45:51.542507 34287 (util.c:156):Changed query state from PENDING to READING
15:45:51.656744 34287 (net.c:555):Received header
0000 04 00 02 00 00 00 00 00- |........|

15:45:51.656815 34287 (net.c:609):Received packet
0000 04 00 02 00 00 00 00 00-7c 73 0a 69 71 00 00 00 |........ |s.iq...|
0010 00 a0 96 00 0c 41 70 69-53 65 73 73 69 6f 6e 49 |.....Api SessionI|
0020 64 14 41 70 69 53 65 73-73 69 6f 6e 43 72 65 61 |d.ApiSes sionCrea|
0030 74 6f 72 55 49 44 14 41-64 6d 69 6e 69 73 74 72 |torUID.A dministr|
0040 61 74 6f 72 4c 6f 67 69-6e 49 64 10 4d 65 65 74 |atorLogi nId.Meet|
0050 69 6e 67 53 65 73 73 69-6f 6e 49 64 13 41 70 69 |ingSessi onId.Api|
0060 53 65 73 73 69 6f 6e 55-73 65 72 4e 6f 74 65 73 |SessionU serNotes|
0070 12 41 70 69 53 65 73 73-69 6f 6e 4d 6f 64 4e 6f |.ApiSess ionModNo|
0080 74 65 73 13 41 70 69 53-65 73 73 69 6f 6e 49 73 |tes.ApiS essionIs|
0090 44 65 6c 65 74 65 64 12-41 70 69 53 65 73 73 69 |Deleted. ApiSessi|
00a0 6f 6e 52 65 6d 6f 74 65-49 64 a1 60 00 2b 00 00 |onRemote Id.`.+..|
00b0 00 6d 08 23 00 00 00 e1-40 00 00 00 2b 00 00 00 |.m.#.... @...+...|
00c0 6d 08 2b 00 00 00 6d 08-14 00 00 00 22 00 fc 00 |m.+...m. ...."...|
00d0 00 12 00 77 65 62 5f 61-70 70 2e 41 70 69 53 65 |...web_a pp.ApiSe|
00e0 73 73 69 6f 6e 14 00 00-00 22 00 fc 00 00 12 00 |ssion... ."......|
00f0 77 65 62 5f 61 70 70 2e-41 70 69 53 65 73 73 69 |web_app. ApiSessi|
0100 6f 6e 10 00 00 00 32 2b-00 00 00 6d 08 ae 08 00 |on....2+ ...m....|
0110 00 00 00 00 00 00 00 00-d1 08 00 00 00 00 00 00 |........ ........|
0120 f0 3f 2a 00 00 00 62 00-72 00 75 00 63 00 65 00 |.?...b. r.u.c.e.|
0130 73 00 40 00 65 00 6c 00-6c 00 75 00 6d 00 69 00 |[email protected]. l.u.m.i.|
0140 6e 00 61 00 74 00 65 00-2e 00 63 00 6f 00 6d 00 |n.a.t.e. ..c.o.m.|
0150 08 00 00 00 00 28 cd 02-41 08 00 00 00 00 20 de |.....(.. A..... .|
0160 fd 40 10 5a 04 00 00 00-00 00 00 00 00 00 00 eb |[email protected].... ........|
0170 b0 4c 00 00 00 00 00 00-4c b0 eb 02 00 00 00 20 |.L...... L...... |
0180 00 10 5b 04 00 00 00 00-00 00 00 00 00 00 f2 b0 |..[..... ........|
0190 4c 00 00 00 00 00 00 4c-b0 f2 02 00 00 00 20 00 |L......L ...... .|
01a0 01 08 00 00 00 00 00 00-f0 3f d1 08 00 00 00 00 |........ .?......|
01b0 00 00 00 40 2a 00 00 00-62 00 72 00 75 00 63 00 |...@
... b.r.u.c.|
01c0 65 00 73 00 40 00 65 00-6c 00 6c 00 75 00 6d 00 |[email protected]. l.l.u.m.|
01d0 69 00 6e 00 61 00 74 00-65 00 2e 00 63 00 6f 00 |i.n.a.t. e...c.o.|
01e0 6d 00 08 00 00 00 00 28-cd 02 41 08 00 00 00 00 |m......( ..A.....|
01f0 30 de fd 40 10 5c 04 00-00 00 00 00 00 00 00 00 |0..@... ........|

15:45:51.656965 34287 (token.c:555):processing result tokens. marker is 7c(PROCID)
15:45:51.656973 34287 (token.c:122):tds_process_default_tokens() marker is 7c(PROCID)
15:45:51.656980 34287 (token.c:555):processing result tokens. marker is a0(COLNAME)
15:45:51.656993 34287 (mem.c:615):tds_free_all_results()
15:45:51.657024 34287 (token.c:555):processing result tokens. marker is a1(COLFMT)
15:45:51.657034 34287 (token.c:1025):processing result. type = 109(float-null), varint_size 1
15:45:51.657042 34287 (token.c:1025):processing result. type = 35(text), varint_size 1
15:45:51.657258 34287 (token.c:3420):adjust_character_column_size:
Server charset: UTF-16LE
Server column_size: 64
Client charset: UTF-8
Client column_size: 128
15:45:51.657274 34287 (token.c:1025):processing result. type = 0(), varint_size 1
15:45:51.657282 34287 (token.c:1025):processing result. type = 0(), varint_size 1
15:45:51.657289 34287 (token.c:1025):processing result. type = 0(), varint_size 1
15:45:51.657296 34287 (token.c:1025):processing result. type = 0(), varint_size 1
15:45:51.657302 34287 (token.c:1025):processing result. type = 98(variant), varint_size 1
15:45:51.657325 34287 (token.c:1025):processing result. type = 65(), varint_size 1
15:45:51.657333 34287 (token.c:1053):NOTE:tds_process_col_fmt: draining 48 bytes
15:45:51.657341 34287 (util.c:156):Changed query state from READING to PENDING
15:45:51.657350 34287 (dblib.c:4700):dbsqlok() found result token
15:45:51.657357 34287 (dblib.c:1668):dbresults(0x7f4ae5dd5f50)
15:45:51.657364 34287 (dblib.c:1674):dbresults: dbresults_state is 1 (_DB_RES_RESULTSET_EMPTY)
15:45:51.657371 34287 (token.c:540):tds_process_tokens(0x7f4ae5eccf70, 0x7ffffe5d93d8, 0x7ffffe5d93dc, 0x6914)
15:45:51.657378 34287 (util.c:156):Changed query state from PENDING to READING
15:45:51.657384 34287 (token.c:555):processing result tokens. marker is ae(CONTROL)
15:45:51.657391 34287 (token.c:122):tds_process_default_tokens() marker is ae(CONTROL)
15:45:51.657397 34287 (token.c:237):Eating CONTROL token
15:45:51.657404 34287 (token.c:555):processing result tokens. marker is d1(ROW)
15:45:51.657411 34287 (token.c:666):tds_process_tokens::SET_RETURN stopping on current token
15:45:51.657417 34287 (util.c:156):Changed query state from READING to PENDING
15:45:51.657423 34287 (dblib.c:1695):dbresults() tds_process_tokens returned 1 (TDS_SUCCEED),
result_type TDS_ROW_RESULT
15:45:51.657430 34287 (dblib.c:1657):dbresults returning 1 (SUCCEED)
15:45:51.657441 34287 (dblib.c:2018):dbnextrow(0x7f4ae5dd5f50)
15:45:51.657448 34287 (dblib.c:2031):dbnextrow() dbresults_state = 2 (_DB_RES_RESULTSET_ROWS)
15:45:51.657455 34287 (token.c:540):tds_process_tokens(0x7f4ae5eccf70, 0x7ffffe5d93ec, (nil), 0x1508)
15:45:51.657464 34287 (util.c:156):Changed query state from PENDING to READING
15:45:51.657470 34287 (token.c:555):processing result tokens. marker is d1(ROW)
15:45:51.657477 34287 (token.c:2304):tds_process_row(): reading column 0
15:45:51.657483 34287 (token.c:2049):tds_get_data: type 109, varint size 1
15:45:51.657490 34287 (token.c:2110):tds_get_data(): wire column size is 8
15:45:51.657496 34287 (token.c:2304):tds_process_row(): reading column 1
15:45:51.657502 34287 (token.c:2049):tds_get_data: type 35, varint size 1
15:45:51.657508 34287 (token.c:2110):tds_get_data(): wire column size is 42
15:45:51.657522 34287 (token.c:2304):tds_process_row(): reading column 2
15:45:51.657529 34287 (token.c:2049):tds_get_data: type 0, varint size 1
15:45:51.657535 34287 (token.c:2110):tds_get_data(): wire column size is -1
15:45:51.657541 34287 (token.c:2304):tds_process_row(): reading column 3
15:45:51.657547 34287 (token.c:2049):tds_get_data: type 0, varint size 1
15:45:51.657553 34287 (token.c:2110):tds_get_data(): wire column size is 109
15:45:51.657560 34287 (token.c:2304):tds_process_row(): reading column 4
15:45:51.657566 34287 (token.c:2049):tds_get_data: type 0, varint size 1
15:45:51.657572 34287 (token.c:2110):tds_get_data(): wire column size is 117
15:45:51.660163 34287 (net.c:555):Received header
0000 04 00 02 00 00 00 00 00- |........|

15:45:51.660215 34287 (net.c:609):Received packet
0000 04 00 02 00 00 00 00 00-00 fb b0 4c 00 00 00 00 |........ ...L....|
0010 00 00 4c b0 fb 02 00 00-00 20 00 10 5d 04 00 00 |..L..... . ..]...|
0020 00 00 00 00 00 00 00 00-02 b1 4c 00 00 00 00 00 |........ ..L.....|
0030 00 4c b1 02 02 00 00 00-20 00 00 08 00 00 00 00 |.L...... .......|
0040 00 00 00 40 d1 08 00 00-00 00 00 00 08 40 2a 00 |...@.... .....@.|
0050 00 00 62 00 72 00 75 00-63 00 65 00 73 00 40 00 |..b.r.u. c.e.s.@.|
0060 65 00 6c 00 6c 00 75 00-6d 00 69 00 6e 00 61 00 |e.l.l.u. m.i.n.a.|
0070 74 00 65 00 2e 00 63 00-6f 00 6d 00 08 00 00 00 |t.e...c. o.m.....|
0080 00 28 cd 02 41 08 00 00-00 00 40 de fd 40 10 5e |.(..A... ..@..@.^|
0090 04 00 00 00 00 00 00 00-00 00 00 0b b1 4c 00 00 |........ .....L..|
00a0 00 00 00 00 4c b1 0b 02-00 00 00 20 00 10 5f 04 |....L... ... ..
.|
00b0 00 00 00 00 00 00 00 00-00 00 12 b1 4c 00 00 00 |........ ....L...|
00c0 00 00 00 4c b1 12 02 00-00 00 20 00 00 08 00 00 |...L.... .. .....|
00d0 00 00 00 00 08 40 d1 08-00 00 00 00 00 00 10 40 |.....@.. .......@|
00e0 2a 00 00 00 62 00 72 00-75 00 63 00 65 00 73 00 |_...b.r. u.c.e.s.|
00f0 40 00 65 00 6c 00 6c 00-75 00 6d 00 69 00 6e 00 |@.e.l.l. u.m.i.n.|
0100 61 00 74 00 65 00 2e 00-63 00 6f 00 6d 00 08 00 |a.t.e... c.o.m...|
0110 00 00 00 28 cd 02 41 08-00 00 00 00 40 ab fe 40 |...(..A. ....@..@|
0120 10 80 01 23 00 00 00 00-00 00 00 00 00 1b b1 4c |...#.... .......L|
0130 00 00 00 00 00 00 4c b1-1b 02 00 00 00 20 00 10 |......L. ..... ..|
0140 81 01 23 00 00 00 00 00-00 00 00 00 23 b1 4c 00 |..#..... ....#.L.|
0150 00 00 00 00 00 4c b1 23-02 00 00 00 20 00 00 08 |.....L.# .... ...|
0160 00 00 00 00 00 00 10 40-d1 08 00 00 00 00 00 00 |.......@ ........|
0170 24 40 12 00 00 00 75 00-69 00 67 00 63 00 61 00 |[email protected]. i.g.c.a.|
0180 64 00 6d 00 69 00 6e 00-08 00 00 00 00 68 14 03 |d.m.i.n. .....h..|
0190 41 08 00 00 00 00 18 24-00 41 10 82 01 23 00 00 |A......$ .A...#..|
01a0 00 00 00 00 00 00 00 2b-b1 4c 00 00 00 00 00 00 |.......+ .L......|
01b0 4c b1 2b 02 00 00 00 20-00 10 83 01 23 00 00 00 |L.+.... ....#...|
01c0 00 00 00 00 00 00 32 b1-4c 00 00 00 00 00 00 4c |......2. L......L|
01d0 b1 32 02 00 00 00 20 00-00 08 00 00 00 00 00 00 |.2.... . ........|
01e0 24 40 d1 08 00 00 00 00-00 00 26 40 12 00 00 00 |$@...... ..&@....|
01f0 75 00 69 00 67 00 63 00-61 00 64 00 6d 00 69 00 |u.i.g.c. a.d.m.i.|

15:45:51.660685 34287 (token.c:2304):tds_process_row(): reading column 5
15:45:51.660701 34287 (token.c:2049):tds_get_data: type 0, varint size 1
15:45:51.660711 34287 (token.c:2110):tds_get_data(): wire column size is -1
15:45:51.660721 34287 (token.c:2304):tds_process_row(): reading column 6
15:45:51.660731 34287 (token.c:2049):tds_get_data: type 98, varint size 1
15:45:51.660741 34287 (token.c:2110):tds_get_data(): wire column size is 8
15:45:51.660752 34287 (token.c:2304):tds_process_row(): reading column 7
15:45:51.660763 34287 (token.c:2049):tds_get_data: type 65, varint size 1
15:45:51.660772 34287 (token.c:2110):tds_get_data(): wire column size is 209
15:45:51.660782 34287 (util.c:156):Changed query state from READING to PENDING
15:45:51.660799 34287 (buffering.h:306):buffer_transfer_bound_data(0x7f4ae5dd5f60 4040 -1 0x7f4ae5dd5f50 0)
15:45:51.660814 34287 (dblib.c:2100):leaving dbnextrow() returning REG_ROW/MORE_ROWS
15:45:51.660828 34287 (dblib.c:2761):dbcount(0x7f4ae5dd5f50)
15:45:51.660839 34287 (dblib.c:1443):dbclose(0x7f4ae5dd5f50)
15:45:51.660850 34287 (dblib.c:258):dblib_del_connection(0x7f4ad67d0760, 0x7f4ae5eccf70)
15:45:51.660862 34287 (mem.c:615):tds_free_all_results()
15:45:51.661260 34287 (util.c:156):Changed query state from PENDING to DEAD
15:45:51.661390 34287 (dblib.c:305):dblib_release_tds_ctx(1)
15:45:51.661421 34287 (dblib.c:5882):dbfreebuf(0x7f4ae5dd5f50)
15:45:51.661433 34287 (dblib.c:739):dbloginfree(0x7f4ae5dd7dc0)
15:45:51.661443 34287 (dblib.c:1512):dbexit(void)
15:45:51.661456 34287 (dblib.c:305):dblib_release_tds_ctx(1)
15:45:51.661599 34287 (dblib.c:670):dbinit(void)
15:45:51.661618 34287 (dblib.c:273):dblib_get_tds_ctx(void)
15:45:51.661630 34287 (locale.c:69):Attempting to read locales.conf file
15:45:51.661658 34287 (dblib.c:4945):dberrhandle(0x7f4ad67d2800)
15:45:51.661670 34287 (dblib.c:4964):dbmsghandle(0x7f4ad67d37b0)
15:45:51.661724 34287 (dblib.c:713):dblogin(void)
15:45:51.661739 34287 (dblib.c:761):dbsetlname(0x7f4ae5eee250, sa, 2)
15:45:51.661749 34287 (dblib.c:761):dbsetlname(0x7f4ae5eee250, not1common, 3)
15:45:51.661758 34287 (dblib.c:1146):dbopen(0x7f4ae5eee250, 10.15.2.70:5000, [sybase])
15:45:51.661769 34287 (dblib.c:273):dblib_get_tds_ctx(void)
15:45:51.661785 34287 (config.c:185):Getting connection information for [10.15.2.70:5000].
15:45:51.661791 34287 (config.c:189):Attempting to read conf files.
15:45:51.661797 34287 (config.c:354):... $FREETDSCONF not set. Trying $FREETDS/etc.
15:45:51.661802 34287 (config.c:367):... $FREETDS not set. Trying $HOME.
15:45:51.661862 34287 (config.c:293):Could not open '/var/lib/postgresql/.freetds.conf' ((.freetds.conf)).
15:45:51.661876 34287 (config.c:297):Found conf file '/etc/freetds/freetds.conf' (default).
15:45:51.661882 34287 (config.c:483):Looking for section global.
15:45:51.661911 34287 (config.c:540): Found section global.
15:45:51.661918 34287 (config.c:543):Got a match.
15:45:51.661925 34287 (config.c:565): dump file = '/tmp/freetds.log'
15:45:51.661931 34287 (config.c:565): debug flags = '0xffff'
15:45:51.661937 34287 (config.c:565): timeout = '30'
15:45:51.661943 34287 (config.c:565): connect timeout = '10'
15:45:51.661949 34287 (config.c:565): text size = '64512'
15:45:51.661955 34287 (config.c:540): Found section sybase.
15:45:51.661961 34287 (config.c:540): Found section egserver70.
15:45:51.661968 34287 (config.c:554): Reached EOF
15:45:51.661973 34287 (config.c:483):Looking for section 10.15.2.70:5000.
15:45:51.661980 34287 (config.c:540): Found section global.
15:45:51.661988 34287 (config.c:540): Found section sybase.
15:45:51.661994 34287 (config.c:540): Found section egserver70.
15:45:51.662000 34287 (config.c:554): Reached EOF
15:45:51.662004 34287 (config.c:303):[10.15.2.70:5000] not found.
15:45:51.662040 34287 (config.c:354):... $FREETDSCONF not set. Trying $FREETDS/etc.
15:45:51.662049 34287 (config.c:367):... $FREETDS not set. Trying $HOME.
15:45:51.662097 34287 (config.c:293):Could not open '/var/lib/postgresql/.freetds.conf' ((.freetds.conf)).
15:45:51.662120 34287 (config.c:297):Found conf file '/etc/freetds/freetds.conf' (default).
15:45:51.662132 34287 (config.c:483):Looking for section global.
15:45:51.662155 34287 (config.c:540): Found section global.
15:45:51.662168 34287 (config.c:543):Got a match.
15:45:51.662180 34287 (config.c:565): dump file = '/tmp/freetds.log'
15:45:51.662193 34287 (config.c:565): debug flags = '0xffff'
15:45:51.662206 34287 (config.c:565): timeout = '30'
15:45:51.662218 34287 (config.c:565): connect timeout = '10'
15:45:51.662229 34287 (config.c:565): text size = '64512'
15:45:51.662240 34287 (config.c:540): Found section sybase.
15:45:51.662253 34287 (config.c:540): Found section egserver70.
15:45:51.662267 34287 (config.c:554): Reached EOF
15:45:51.662278 34287 (config.c:483):Looking for section 10.15.2.70.
15:45:51.662292 34287 (config.c:540): Found section global.
15:45:51.662307 34287 (config.c:540): Found section sybase.
15:45:51.662319 34287 (config.c:540): Found section egserver70.
15:45:51.662329 34287 (config.c:554): Reached EOF
15:45:51.662337 34287 (config.c:303):[10.15.2.70] not found.
15:45:51.662364 34287 (iconv.c:330):tds_iconv_open(0x7f4ae5dd7d50, UTF-8)
15:45:51.662393 34287 (iconv.c:349):setting up conversions for client charset "UTF-8"
15:45:51.662398 34287 (iconv.c:351):preparing iconv for "UTF-8" <-> "UCS-2LE" conversion
15:45:51.662418 34287 (iconv.c:391):preparing iconv for "ISO-8859-1" <-> "ISO-8859-1" conversion
15:45:51.662425 34287 (iconv.c:394):tds_iconv_open: done
15:45:51.662432 34287 (net.c:205):Connecting to 10.15.2.70 port 5000 (TDS version 4.2)
15:45:51.662565 34287 (net.c:270):tds_open_socket: connect(2) returned "Operation now in progress"
15:45:51.781873 34287 (net.c:310):tds_open_socket() succeeded
15:45:51.781934 34287 (util.c:156):Changed query state from DEAD to IDLE
15:45:51.781993 34287 (net.c:741):Sending packet
0000 02 00 02 00 00 00 00 00-62 69 74 61 72 65 6e 61 |........ bitarena|
0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0020 00 00 00 00 00 00 08 73-61 00 00 00 00 00 00 00 |.......s a.......|
0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0040 00 00 00 00 00 02 6e 6f-74 31 63 6f 6d 6d 6f 6e |......no t1common|
0050 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0060 00 00 00 00 0a 33 34 32-38 37 00 00 00 00 00 00 |.....342 87......|
0070 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0080 00 00 00 05 03 01 06 0a-09 01 00 00 00 00 02 00 |........ ........|
0090 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
00a0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
00b0 00 00 00 31 30 2e 31 35-2e 32 2e 37 30 3a 35 30 |...10.15 .2.70:50|
00c0 30 30 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |00...... ........|
00d0 00 0f 6e 6f 74 31 63 6f-6d 6d 6f 6e 00 00 00 00 |..not1co mmon....|
00e0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
00f0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0100 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0110 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0120 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0130 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0140 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0150 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0160 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0170 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0180 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0190 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
01a0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
01b0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
01c0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
01d0 00 0a 04 02 00 00 44 42-2d 4c 69 62 72 61 72 79 |......DB -Library|
01e0 0a 00 00 00 00 00 0d 11-75 73 5f 65 6e 67 6c 69 |........ us_engli|
01f0 73 68 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |sh...... ........|

15:45:51.782248 34287 (net.c:741):Sending packet
0000 02 01 00 4c 00 00 00 00-00 00 00 00 00 00 0a 00 |...L.... ........|
0010 00 00 00 00 00 00 00 00-00 00 00 00 00 75 74 66 |........ .....utf|
0020 38 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |8....... ........|
0030 00 00 00 00 00 00 00 00-00 00 00 04 01 35 31 32 |........ .....512|
0040 00 00 00 03 00 00 00 00-00 00 00 00 |........ ....|

15:45:51.782395 34287 (token.c:328):tds_process_login_tokens()
15:45:51.912087 34287 (net.c:555):Received header
0000 04 01 00 70 00 00 00 00- |...p....|

15:45:51.912214 34287 (net.c:609):Received packet
0000 04 01 00 70 00 00 00 00-e3 0f 00 01 06 6d 61 73 |...p.... .....mas|
0010 74 65 72 06 6d 61 73 74-65 72 ab 3a 00 45 16 00 |ter.mast er.:.E..|
0020 00 02 00 26 00 43 68 61-6e 67 65 64 20 64 61 74 |...&.Cha nged dat|
0030 61 62 61 73 65 20 63 6f-6e 74 65 78 74 20 74 6f |abase co ntext to|
0040 20 27 6d 61 73 74 65 72-27 2e 0a 08 76 61 73 74 | 'master '...vast|
0050 67 5f 64 62 00 00 00 ad-0d 00 01 04 02 00 00 03 |g_db.... ........|
0060 41 53 45 0f 07 00 00 fd-00 00 02 00 5c 00 00 00 |ASE..... .......|

15:45:51.912284 34287 (token.c:337):looking for login token, got e3(ENVCHANGE)
15:45:51.912297 34287 (token.c:122):tds_process_default_tokens() marker is e3(ENVCHANGE)
15:45:51.912315 34287 (dblib.c:327):db_env_chg(0x7f4ae5dd7d50, 1, master, master)
15:45:51.912329 34287 (token.c:337):looking for login token, got ab(INFO)
15:45:51.912339 34287 (token.c:122):tds_process_default_tokens() marker is ab(INFO)
15:45:51.912351 34287 (token.c:2588):tds_process_msg() reading message 5701 from server
15:45:51.912367 34287 (token.c:2661):tds_process_msg() calling client msg handler
15:45:51.912377 34287 (dbutil.c:85):_dblib_handle_info_message(0x7f4ae5edcfd0, 0x7f4ae5dd7d50, 0x7ffffe5d9090)
15:45:51.912388 34287 (dbutil.c:86):msgno 5701: "Changed database context to 'master'.
"
15:45:51.912839 34287 (token.c:2674):tds_process_msg() returning TDS_SUCCEED
15:45:51.912869 34287 (token.c:337):looking for login token, got ad(LOGINACK)
15:45:51.912881 34287 (token.c:373):server reports TDS version 4.2.0.0
15:45:51.912892 34287 (token.c:375):Product name for 0x4020000 is unknown
15:45:51.912905 34287 (token.c:337):looking for login token, got fd(DONE)
15:45:51.912916 34287 (token.c:122):tds_process_default_tokens() marker is fd(DONE)
15:45:51.912927 34287 (token.c:2339):tds_process_end: more_results = 0
was_cancelled = 0
error = 0
done_count_valid = 0
15:45:51.912938 34287 (token.c:2355):tds_process_end() state set to TDS_IDLE
15:45:51.912948 34287 (token.c:2370): rows_affected = 92
15:45:51.912958 34287 (token.c:438):tds_process_login_tokens() returning TDS_SUCCEED
15:45:51.913001 34287 (mem.c:615):tds_free_all_results()
15:45:51.913015 34287 (util.c:156):Changed query state from IDLE to QUERYING
15:45:51.913027 34287 (util.c:156):Changed query state from QUERYING to PENDING
15:45:51.913038 34287 (net.c:741):Sending packet
0000 01 01 00 1b 00 00 00 00-73 65 74 20 74 65 78 74 |........ set text|
0010 73 69 7a 65 20 36 34 35-31 32 20 |size 645 12 |

15:45:51.913302 34287 (token.c:540):tds_process_tokens(0x7f4ae5dd7d50, 0x7ffffe5d91c8, 0x7ffffe5d91cc, 0x100)
15:45:51.913332 34287 (util.c:156):Changed query state from PENDING to READING
15:45:52.026788 34287 (net.c:555):Received header
0000 04 01 00 11 00 00 00 00- |........|

15:45:52.026862 34287 (net.c:609):Received packet
0000 04 01 00 11 00 00 00 00-fd 00 00 02 00 00 00 00 |........ ........|
0010 00 - |.|

15:45:52.026881 34287 (token.c:555):processing result tokens. marker is fd(DONE)
15:45:52.026894 34287 (token.c:2339):tds_process_end: more_results = 0
was_cancelled = 0
error = 0
done_count_valid = 0
15:45:52.026902 34287 (token.c:2355):tds_process_end() state set to TDS_IDLE
15:45:52.026910 34287 (util.c:156):Changed query state from READING to IDLE
15:45:52.026919 34287 (token.c:2370): rows_affected = 0
15:45:52.026927 34287 (util.c:104):logic error: cannot change query state from IDLE to PENDING
15:45:52.026935 34287 (token.c:540):tds_process_tokens(0x7f4ae5dd7d50, 0x7ffffe5d91c8, 0x7ffffe5d91cc, 0x100)
15:45:52.026944 34287 (token.c:543):tds_process_tokens() state is COMPLETED
15:45:52.026956 34287 (dblib.c:239):dblib_add_connection(0x7f4ad67d0760, 0x7f4ae5dd7d50)
15:45:52.027000 34287 (dblib.c:1398):dbuse(0x7f4ae5eccf70, sas_db)
15:45:52.027027 34287 (dblib.c:1312):dbcmd(0x7f4ae5eccf70, use [sas_db])
15:45:52.027041 34287 (dblib.c:1319):dbcmd() bufsz = 0
15:45:52.027052 34287 (dblib.c:1369):dbsqlexec(0x7f4ae5eccf70)
15:45:52.027063 34287 (dblib.c:6862):dbsqlsend(0x7f4ae5eccf70)
15:45:52.027074 34287 (mem.c:615):tds_free_all_results()
15:45:52.027085 34287 (util.c:156):Changed query state from IDLE to QUERYING
15:45:52.027097 34287 (util.c:156):Changed query state from QUERYING to PENDING
15:45:52.027107 34287 (net.c:741):Sending packet
0000 01 01 00 14 00 00 00 00-75 73 65 20 5b 73 61 73 |........ use [sas|
0010 5f 64 62 5d - |_db]|

15:45:52.027299 34287 (dblib.c:4639):dbsqlok(0x7f4ae5eccf70)
15:45:52.027327 34287 (dblib.c:4669):dbsqlok() not done, calling tds_process_tokens()
15:45:52.027339 34287 (token.c:540):tds_process_tokens(0x7f4ae5dd7d50, 0x7ffffe5d9628, 0x7ffffe5d962c, 0x6914)
15:45:52.027350 34287 (util.c:156):Changed query state from PENDING to READING
15:45:52.144390 34287 (net.c:555):Received header
0000 04 01 00 60 00 00 00 00- |...`....|

15:45:52.144481 34287 (net.c:609):Received packet
0000 04 01 00 60 00 00 00 00-e3 0f 00 01 06 73 61 73 |...`.... .....sas|
0010 5f 64 62 06 6d 61 73 74-65 72 ab 3a 00 45 16 00 |_db.mast er.:.E..|
0020 00 01 00 26 00 43 68 61-6e 67 65 64 20 64 61 74 |...&.Cha nged dat|
0030 61 62 61 73 65 20 63 6f-6e 74 65 78 74 20 74 6f |abase co ntext to|
0040 20 27 73 61 73 5f 64 62-27 2e 0a 08 76 61 73 74 | 'sas_db '...vast|
0050 67 5f 64 62 00 01 00 fd-00 00 02 00 00 00 00 00 |g_db.... ........|

15:45:52.144543 34287 (token.c:555):processing result tokens. marker is e3(ENVCHANGE)
15:45:52.144556 34287 (token.c:122):tds_process_default_tokens() marker is e3(ENVCHANGE)
15:45:52.144574 34287 (dblib.c:327):db_env_chg(0x7f4ae5dd7d50, 1, master, sas_db)
15:45:52.144590 34287 (token.c:555):processing result tokens. marker is ab(INFO)
15:45:52.144601 34287 (token.c:122):tds_process_default_tokens() marker is ab(INFO)
15:45:52.144612 34287 (token.c:2588):tds_process_msg() reading message 5701 from server
15:45:52.144626 34287 (token.c:2661):tds_process_msg() calling client msg handler
15:45:52.144637 34287 (dbutil.c:85):_dblib_handle_info_message(0x7f4ae5edcfd0, 0x7f4ae5dd7d50, 0x7ffffe5d9480)
15:45:52.144680 34287 (dbutil.c:86):msgno 5701: "Changed database context to 'sas_db'.
"
15:45:52.145166 34287 (token.c:2674):tds_process_msg() returning TDS_SUCCEED
15:45:52.145204 34287 (token.c:555):processing result tokens. marker is fd(DONE)
15:45:52.145228 34287 (token.c:2339):tds_process_end: more_results = 0
was_cancelled = 0
error = 0
done_count_valid = 0
15:45:52.145252 34287 (token.c:2355):tds_process_end() state set to TDS_IDLE
15:45:52.145273 34287 (util.c:156):Changed query state from READING to IDLE
15:45:52.145291 34287 (token.c:2370): rows_affected = 0
15:45:52.145309 34287 (util.c:104):logic error: cannot change query state from IDLE to PENDING
15:45:52.145321 34287 (dblib.c:4707):dbsqlok() end status is SUCCEED
15:45:52.145331 34287 (dblib.c:4718):dbsqlok() end status was success
15:45:52.145341 34287 (dblib.c:1668):dbresults(0x7f4ae5eccf70)
15:45:52.145352 34287 (dblib.c:1674):dbresults: dbresults_state is 5 (_DB_RES_SUCCEED)
15:45:52.145363 34287 (dblib.c:1657):dbresults returning 1 (SUCCEED)
15:45:52.145373 34287 (dblib.c:5854):dbcanquery(0x7f4ae5eccf70)
15:45:52.145383 34287 (token.c:540):tds_process_tokens(0x7f4ae5dd7d50, 0x7ffffe5d964c, (nil), 0x108)
15:45:52.145398 34287 (token.c:543):tds_process_tokens() state is COMPLETED
15:45:52.145516 34287 (dblib.c:1312):dbcmd(0x7f4ae5eccf70, select * from web_app.ApiSession)
15:45:52.145548 34287 (dblib.c:1319):dbcmd() bufsz = 13
15:45:52.145569 34287 (dblib.c:5882):dbfreebuf(0x7f4ae5eccf70)
15:45:52.145591 34287 (dblib.c:1369):dbsqlexec(0x7f4ae5eccf70)
15:45:52.145611 34287 (dblib.c:6862):dbsqlsend(0x7f4ae5eccf70)
15:45:52.145632 34287 (mem.c:615):tds_free_all_results()
15:45:52.145653 34287 (util.c:156):Changed query state from IDLE to QUERYING
15:45:52.145677 34287 (util.c:156):Changed query state from QUERYING to PENDING
15:45:52.145698 34287 (net.c:741):Sending packet
0000 01 01 00 28 00 00 00 00-73 65 6c 65 63 74 20 2a |...(.... select *|
0010 20 66 72 6f 6d 20 77 65-62 5f 61 70 70 2e 41 70 | from we b_app.Ap|
0020 69 53 65 73 73 69 6f 6e- |iSession|

15:45:52.146241 34287 (dblib.c:4639):dbsqlok(0x7f4ae5eccf70)
15:45:52.146325 34287 (dblib.c:4669):dbsqlok() not done, calling tds_process_tokens()
15:45:52.146359 34287 (token.c:540):tds_process_tokens(0x7f4ae5dd7d50, 0x7ffffe5d95b8, 0x7ffffe5d95bc, 0x6914)
15:45:52.146401 34287 (util.c:156):Changed query state from PENDING to READING
15:45:52.262567 34287 (net.c:555):Received header
0000 04 00 02 00 00 00 00 00- |........|

15:45:52.262671 34287 (net.c:609):Received packet
0000 04 00 02 00 00 00 00 00-7c 73 0a 69 71 00 00 00 |........ |s.iq...|
0010 00 a0 96 00 0c 41 70 69-53 65 73 73 69 6f 6e 49 |.....Api SessionI|
0020 64 14 41 70 69 53 65 73-73 69 6f 6e 43 72 65 61 |d.ApiSes sionCrea|
0030 74 6f 72 55 49 44 14 41-64 6d 69 6e 69 73 74 72 |torUID.A dministr|
0040 61 74 6f 72 4c 6f 67 69-6e 49 64 10 4d 65 65 74 |atorLogi nId.Meet|
0050 69 6e 67 53 65 73 73 69-6f 6e 49 64 13 41 70 69 |ingSessi onId.Api|
0060 53 65 73 73 69 6f 6e 55-73 65 72 4e 6f 74 65 73 |SessionU serNotes|
0070 12 41 70 69 53 65 73 73-69 6f 6e 4d 6f 64 4e 6f |.ApiSess ionModNo|
0080 74 65 73 13 41 70 69 53-65 73 73 69 6f 6e 49 73 |tes.ApiS essionIs|
0090 44 65 6c 65 74 65 64 12-41 70 69 53 65 73 73 69 |Deleted. ApiSessi|
00a0 6f 6e 52 65 6d 6f 74 65-49 64 a1 60 00 2b 00 00 |onRemote Id.`.+..|
00b0 00 6d 08 23 00 00 00 e1-40 00 00 00 2b 00 00 00 |.m.#.... @...+...|
00c0 6d 08 2b 00 00 00 6d 08-14 00 00 00 22 00 fc 00 |m.+...m. ...."...|
00d0 00 12 00 77 65 62 5f 61-70 70 2e 41 70 69 53 65 |...web_a pp.ApiSe|
00e0 73 73 69 6f 6e 14 00 00-00 22 00 fc 00 00 12 00 |ssion... ."......|
00f0 77 65 62 5f 61 70 70 2e-41 70 69 53 65 73 73 69 |web_app. ApiSessi|
0100 6f 6e 10 00 00 00 32 2b-00 00 00 6d 08 ae 08 00 |on....2+ ...m....|
0110 00 00 00 00 00 00 00 00-d1 08 00 00 00 00 00 00 |........ ........|
0120 f0 3f 2a 00 00 00 62 00-72 00 75 00 63 00 65 00 |.?...b. r.u.c.e.|
0130 73 00 40 00 65 00 6c 00-6c 00 75 00 6d 00 69 00 |[email protected]. l.u.m.i.|
0140 6e 00 61 00 74 00 65 00-2e 00 63 00 6f 00 6d 00 |n.a.t.e. ..c.o.m.|
0150 08 00 00 00 00 28 cd 02-41 08 00 00 00 00 20 de |.....(.. A..... .|
0160 fd 40 10 5a 04 00 00 00-00 00 00 00 00 00 00 eb |[email protected].... ........|
0170 b0 4c 00 00 00 00 00 00-4c b0 eb 02 00 00 00 20 |.L...... L...... |
0180 00 10 5b 04 00 00 00 00-00 00 00 00 00 00 f2 b0 |..[..... ........|
0190 4c 00 00 00 00 00 00 4c-b0 f2 02 00 00 00 20 00 |L......L ...... .|
01a0 01 08 00 00 00 00 00 00-f0 3f d1 08 00 00 00 00 |........ .?......|
01b0 00 00 00 40 2a 00 00 00-62 00 72 00 75 00 63 00 |...@
... b.r.u.c.|
01c0 65 00 73 00 40 00 65 00-6c 00 6c 00 75 00 6d 00 |[email protected]. l.l.u.m.|
01d0 69 00 6e 00 61 00 74 00-65 00 2e 00 63 00 6f 00 |i.n.a.t. e...c.o.|
01e0 6d 00 08 00 00 00 00 28-cd 02 41 08 00 00 00 00 |m......( ..A.....|
01f0 30 de fd 40 10 5c 04 00-00 00 00 00 00 00 00 00 |0..@... ........|

15:45:52.262963 34287 (token.c:555):processing result tokens. marker is 7c(PROCID)
15:45:52.262978 34287 (token.c:122):tds_process_default_tokens() marker is 7c(PROCID)
15:45:52.262990 34287 (token.c:555):processing result tokens. marker is a0(COLNAME)
15:45:52.263012 34287 (mem.c:615):tds_free_all_results()
15:45:52.263053 34287 (token.c:555):processing result tokens. marker is a1(COLFMT)
15:45:52.263069 34287 (token.c:1025):processing result. type = 109(float-null), varint_size 1
15:45:52.263082 34287 (token.c:1025):processing result. type = 35(text), varint_size 1
15:45:52.263148 34287 (token.c:3420):adjust_character_column_size:
Server charset: UTF-16LE
Server column_size: 64
Client charset: UTF-8
Client column_size: 128
15:45:52.263164 34287 (token.c:1025):processing result. type = 0(), varint_size 1
15:45:52.263176 34287 (token.c:1025):processing result. type = 0(), varint_size 1
15:45:52.263187 34287 (token.c:1025):processing result. type = 0(), varint_size 1
15:45:52.263198 34287 (token.c:1025):processing result. type = 0(), varint_size 1
15:45:52.263208 34287 (token.c:1025):processing result. type = 98(variant), varint_size 1
15:45:52.263219 34287 (token.c:1025):processing result. type = 65(), varint_size 1
15:45:52.263230 34287 (token.c:1053):NOTE:tds_process_col_fmt: draining 48 bytes
15:45:52.263242 34287 (util.c:156):Changed query state from READING to PENDING
15:45:52.263255 34287 (dblib.c:4700):dbsqlok() found result token
15:45:52.263267 34287 (dblib.c:1668):dbresults(0x7f4ae5eccf70)
15:45:52.263278 34287 (dblib.c:1674):dbresults: dbresults_state is 1 (_DB_RES_RESULTSET_EMPTY)
15:45:52.263288 34287 (token.c:540):tds_process_tokens(0x7f4ae5dd7d50, 0x7ffffe5d95a8, 0x7ffffe5d95ac, 0x6914)
15:45:52.263299 34287 (util.c:156):Changed query state from PENDING to READING
15:45:52.263309 34287 (token.c:555):processing result tokens. marker is ae(CONTROL)
15:45:52.263319 34287 (token.c:122):tds_process_default_tokens() marker is ae(CONTROL)
15:45:52.263330 34287 (token.c:237):Eating CONTROL token
15:45:52.263340 34287 (token.c:555):processing result tokens. marker is d1(ROW)
15:45:52.263351 34287 (token.c:666):tds_process_tokens::SET_RETURN stopping on current token
15:45:52.263361 34287 (util.c:156):Changed query state from READING to PENDING
15:45:52.263371 34287 (dblib.c:1695):dbresults() tds_process_tokens returned 1 (TDS_SUCCEED),
result_type TDS_ROW_RESULT
15:45:52.263382 34287 (dblib.c:1657):dbresults returning 1 (SUCCEED)
15:45:52.263392 34287 (dblib.c:2018):dbnextrow(0x7f4ae5eccf70)
15:45:52.263402 34287 (dblib.c:2031):dbnextrow() dbresults_state = 2 (_DB_RES_RESULTSET_ROWS)
15:45:52.263412 34287 (token.c:540):tds_process_tokens(0x7f4ae5dd7d50, 0x7ffffe5d95bc, (nil), 0x1508)
15:45:52.263426 34287 (util.c:156):Changed query state from PENDING to READING
15:45:52.263435 34287 (token.c:555):processing result tokens. marker is d1(ROW)
15:45:52.263446 34287 (token.c:2304):tds_process_row(): reading column 0
15:45:52.263456 34287 (token.c:2049):tds_get_data: type 109, varint size 1
15:45:52.263466 34287 (token.c:2110):tds_get_data(): wire column size is 8
15:45:52.263476 34287 (token.c:2304):tds_process_row(): reading column 1
15:45:52.263486 34287 (token.c:2049):tds_get_data: type 35, varint size 1
15:45:52.263510 34287 (token.c:2110):tds_get_data(): wire column size is 42
15:45:52.263528 34287 (token.c:2304):tds_process_row(): reading column 2
15:45:52.263539 34287 (token.c:2049):tds_get_data: type 0, varint size 1
15:45:52.263549 34287 (token.c:2110):tds_get_data(): wire column size is -1
15:45:52.263559 34287 (token.c:2304):tds_process_row(): reading column 3
15:45:52.263568 34287 (token.c:2049):tds_get_data: type 0, varint size 1
15:45:52.263577 34287 (token.c:2110):tds_get_data(): wire column size is 109
15:45:52.263587 34287 (token.c:2304):tds_process_row(): reading column 4
15:45:52.263597 34287 (token.c:2049):tds_get_data: type 0, varint size 1
15:45:52.263606 34287 (token.c:2110):tds_get_data(): wire column size is 117
15:45:52.265020 34287 (net.c:555):Received header
0000 04 00 02 00 00 00 00 00- |........|

15:45:52.265047 34287 (net.c:609):Received packet
0000 04 00 02 00 00 00 00 00-00 fb b0 4c 00 00 00 00 |........ ...L....|
0010 00 00 4c b0 fb 02 00 00-00 20 00 10 5d 04 00 00 |..L..... . ..]...|
0020 00 00 00 00 00 00 00 00-02 b1 4c 00 00 00 00 00 |........ ..L.....|
0030 00 4c b1 02 02 00 00 00-20 00 00 08 00 00 00 00 |.L...... .......|
0040 00 00 00 40 d1 08 00 00-00 00 00 00 08 40 2a 00 |...@.... .....@.|
0050 00 00 62 00 72 00 75 00-63 00 65 00 73 00 40 00 |..b.r.u. c.e.s.@.|
0060 65 00 6c 00 6c 00 75 00-6d 00 69 00 6e 00 61 00 |e.l.l.u. m.i.n.a.|
0070 74 00 65 00 2e 00 63 00-6f 00 6d 00 08 00 00 00 |t.e...c. o.m.....|
0080 00 28 cd 02 41 08 00 00-00 00 40 de fd 40 10 5e |.(..A... ..@..@.^|
0090 04 00 00 00 00 00 00 00-00 00 00 0b b1 4c 00 00 |........ .....L..|
00a0 00 00 00 00 4c b1 0b 02-00 00 00 20 00 10 5f 04 |....L... ... ..
.|
00b0 00 00 00 00 00 00 00 00-00 00 12 b1 4c 00 00 00 |........ ....L...|
00c0 00 00 00 4c b1 12 02 00-00 00 20 00 00 08 00 00 |...L.... .. .....|
00d0 00 00 00 00 08 40 d1 08-00 00 00 00 00 00 10 40 |.....@.. .......@|
00e0 2a 00 00 00 62 00 72 00-75 00 63 00 65 00 73 00 |_...b.r. u.c.e.s.|
00f0 40 00 65 00 6c 00 6c 00-75 00 6d 00 69 00 6e 00 |@.e.l.l. u.m.i.n.|
0100 61 00 74 00 65 00 2e 00-63 00 6f 00 6d 00 08 00 |a.t.e... c.o.m...|
0110 00 00 00 28 cd 02 41 08-00 00 00 00 40 ab fe 40 |...(..A. ....@..@|
0120 10 80 01 23 00 00 00 00-00 00 00 00 00 1b b1 4c |...#.... .......L|
0130 00 00 00 00 00 00 4c b1-1b 02 00 00 00 20 00 10 |......L. ..... ..|
0140 81 01 23 00 00 00 00 00-00 00 00 00 23 b1 4c 00 |..#..... ....#.L.|
0150 00 00 00 00 00 4c b1 23-02 00 00 00 20 00 00 08 |.....L.# .... ...|
0160 00 00 00 00 00 00 10 40-d1 08 00 00 00 00 00 00 |.......@ ........|
0170 24 40 12 00 00 00 75 00-69 00 67 00 63 00 61 00 |[email protected]. i.g.c.a.|
0180 64 00 6d 00 69 00 6e 00-08 00 00 00 00 68 14 03 |d.m.i.n. .....h..|
0190 41 08 00 00 00 00 18 24-00 41 10 82 01 23 00 00 |A......$ .A...#..|
01a0 00 00 00 00 00 00 00 2b-b1 4c 00 00 00 00 00 00 |.......+ .L......|
01b0 4c b1 2b 02 00 00 00 20-00 10 83 01 23 00 00 00 |L.+.... ....#...|
01c0 00 00 00 00 00 00 32 b1-4c 00 00 00 00 00 00 4c |......2. L......L|
01d0 b1 32 02 00 00 00 20 00-00 08 00 00 00 00 00 00 |.2.... . ........|
01e0 24 40 d1 08 00 00 00 00-00 00 26 40 12 00 00 00 |$@...... ..&@....|
01f0 75 00 69 00 67 00 63 00-61 00 64 00 6d 00 69 00 |u.i.g.c. a.d.m.i.|

15:45:52.265173 34287 (token.c:2304):tds_process_row(): reading column 5
15:45:52.265180 34287 (token.c:2049):tds_get_data: type 0, varint size 1
15:45:52.265190 34287 (token.c:2110):tds_get_data(): wire column size is -1
15:45:52.265200 34287 (token.c:2304):tds_process_row(): reading column 6
15:45:52.265210 34287 (token.c:2049):tds_get_data: type 98, varint size 1
15:45:52.265220 34287 (token.c:2110):tds_get_data(): wire column size is 8
15:45:52.265231 34287 (token.c:2304):tds_process_row(): reading column 7
15:45:52.265241 34287 (token.c:2049):tds_get_data: type 65, varint size 1
15:45:52.265250 34287 (token.c:2110):tds_get_data(): wire column size is 209
15:45:52.265258 34287 (util.c:156):Changed query state from READING to PENDING
15:45:52.265268 34287 (buffering.h:306):buffer_transfer_bound_data(0x7f4ae5eccf80 4040 -1 0x7f4ae5eccf70 0)
15:45:52.265286 34287 (dblib.c:2100):leaving dbnextrow() returning REG_ROW/MORE_ROWS
15:45:52.265292 34287 (dblib.c:1813):dbnumcols(0x7f4ae5eccf70)
15:45:52.265305 34287 (dblib.c:2831):dbcoltype(0x7f4ae5eccf70, 1)
15:45:52.265317 34287 (dblib.c:3133):dbdatlen(0x7f4ae5eccf70, 1)
15:45:52.265322 34287 (dblib.c:3142):dbdatlen() type = 109, len= 8
15:45:52.265328 34287 (dblib.c:3162):dbdata(0x7f4ae5eccf70, 1)
15:45:52.265333 34287 (dblib.c:2812):dbwillconvert(SYBFLT8, SYBCHAR)
15:45:52.265340 34287 (convert.c:2788):tds_willconvert(62, 47)
15:45:52.265348 34287 (convert.c:2792):tds_willconvert(62, 47) returns yes
15:45:52.265356 34287 (dblib.c:2217):dbconvert(0x7f4ae5eccf70, SYBFLT8, 0x7f4ae5ef1020, 8, SYBCHAR, 0x7f4ae5f076a0, -1)
15:45:52.265361 34287 (dblib.c:2349):dbconvert() calling tds_convert
15:45:52.265383 34287 (dblib.c:2352):dbconvert() called tds_convert returned 1
15:45:52.265389 34287 (dblib.c:2455):dbconvert() outputting 1 bytes character data destlen = -1
15:45:52.265395 34287 (dblib.c:2831):dbcoltype(0x7f4ae5eccf70, 2)
15:45:52.265400 34287 (dblib.c:3133):dbdatlen(0x7f4ae5eccf70, 2)
15:45:52.265405 34287 (dblib.c:3142):dbdatlen() type = 35, len= 61
15:45:52.265409 34287 (dblib.c:3162):dbdata(0x7f4ae5eccf70, 2)
15:45:52.265414 34287 (dblib.c:2812):dbwillconvert(SYBTEXT, SYBCHAR)
15:45:52.265419 34287 (convert.c:2788):tds_willconvert(35, 47)
15:45:52.265424 34287 (convert.c:2792):tds_willconvert(35, 47) returns yes
15:45:52.265429 34287 (dblib.c:2217):dbconvert(0x7f4ae5eccf70, SYBTEXT, 0x7f4ae5ef1028, 61, SYBCHAR, 0x7f4ae5f07ab0, -1)
15:45:52.265434 34287 (dblib.c:2349):dbconvert() calling tds_convert
15:45:52.265442 34287 (dblib.c:2352):dbconvert() called tds_convert returned 61
15:45:52.265447 34287 (dblib.c:2455):dbconvert() outputting 61 bytes character data destlen = -1
15:45:52.265452 34287 (dblib.c:2831):dbcoltype(0x7f4ae5eccf70, 3)
15:45:52.265457 34287 (dblib.c:3133):dbdatlen(0x7f4ae5eccf70, 3)
15:45:52.265462 34287 (dblib.c:3142):dbdatlen() type = 0, len= 0
15:45:52.265467 34287 (dblib.c:3162):dbdata(0x7f4ae5eccf70, 3)
15:45:52.265471 34287 (dblib.c:2831):dbcoltype(0x7f4ae5eccf70, 4)
15:45:52.265476 34287 (dblib.c:3133):dbdatlen(0x7f4ae5eccf70, 4)
15:45:52.265481 34287 (dblib.c:3142):dbdatlen() type = 0, len= 0
15:45:52.265485 34287 (dblib.c:3162):dbdata(0x7f4ae5eccf70, 4)
15:45:52.265490 34287 (dblib.c:2831):dbcoltype(0x7f4ae5eccf70, 5)
15:45:52.265494 34287 (dblib.c:3133):dbdatlen(0x7f4ae5eccf70, 5)
15:45:52.265499 34287 (dblib.c:3142):dbdatlen() type = 0, len= 0
15:45:52.265504 34287 (dblib.c:3162):dbdata(0x7f4ae5eccf70, 5)
15:45:52.265509 34287 (dblib.c:2831):dbcoltype(0x7f4ae5eccf70, 6)
15:45:52.265513 34287 (dblib.c:3133):dbdatlen(0x7f4ae5eccf70, 6)
15:45:52.265518 34287 (dblib.c:3142):dbdatlen() type = 0, len= 0
15:45:52.265522 34287 (dblib.c:3162):dbdata(0x7f4ae5eccf70, 6)
15:45:52.265527 34287 (dblib.c:2831):dbcoltype(0x7f4ae5eccf70, 7)
15:45:52.265532 34287 (dblib.c:3133):dbdatlen(0x7f4ae5eccf70, 7)
15:45:52.265536 34287 (dblib.c:3142):dbdatlen() type = 98, len= 8
15:45:52.265541 34287 (dblib.c:3162):dbdata(0x7f4ae5eccf70, 7)
15:45:52.265545 34287 (dblib.c:2812):dbwillconvert(SYBVARIANT, SYBCHAR)
15:45:52.265550 34287 (convert.c:2788):tds_willconvert(98, 47)
15:45:52.265555 34287 (dblib.c:2831):dbcoltype(0x7f4ae5eccf70, 8)
15:45:52.265560 34287 (dblib.c:3133):dbdatlen(0x7f4ae5eccf70, 8)
15:45:52.265565 34287 (dblib.c:3142):dbdatlen() type = 65, len= 112
15:45:52.265569 34287 (dblib.c:3162):dbdata(0x7f4ae5eccf70, 8)
15:45:52.265574 34287 (dblib.c:2812):dbwillconvert(SYBUINT2, SYBCHAR)
15:45:52.265579 34287 (convert.c:2788):tds_willconvert(65, 47)
postgres@bitarena:$
postgres@bitarena:
$ clear
postgres@bitarena:~$ cat /tmp/freetds.log | more
15:45:51.071682 34287 (log.c:196):Starting log file for FreeTDS 0.91
on 2014-05-28 15:45:51 with debug flags 0xffff.
15:45:51.071736 34287 (iconv.c:330):tds_iconv_open(0x7f4ae5eccf70, UTF-8)
15:45:51.071925 34287 (iconv.c:187):local name for ISO-8859-1 is ISO-8859-1
15:45:51.071943 34287 (iconv.c:187):local name for UTF-8 is UTF-8
15:45:51.071951 34287 (iconv.c:187):local name for UCS-2LE is UCS-2LE
15:45:51.071959 34287 (iconv.c:187):local name for UCS-2BE is UCS-2BE
15:45:51.071967 34287 (iconv.c:349):setting up conversions for client charset "UTF-8"
15:45:51.071974 34287 (iconv.c:351):preparing iconv for "UTF-8" <-> "UCS-2LE" conversion
15:45:51.071992 34287 (iconv.c:391):preparing iconv for "ISO-8859-1" <-> "ISO-8859-1" conversion
15:45:51.072001 34287 (iconv.c:394):tds_iconv_open: done
15:45:51.072018 34287 (net.c:205):Connecting to 10.15.2.70 port 5000 (TDS version 4.2)
15:45:51.072229 34287 (net.c:270):tds_open_socket: connect(2) returned "Operation now in progress"
15:45:51.187342 34287 (net.c:310):tds_open_socket() succeeded
15:45:51.187427 34287 (util.c:156):Changed query state from DEAD to IDLE
15:45:51.187457 34287 (net.c:741):Sending packet
0000 02 00 02 00 00 00 00 00-62 69 74 61 72 65 6e 61 |........ bitarena|
0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0020 00 00 00 00 00 00 08 73-61 00 00 00 00 00 00 00 |.......s a.......|
0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0040 00 00 00 00 00 02 6e 6f-74 31 63 6f 6d 6d 6f 6e |......no t1common|
0050 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0060 00 00 00 00 0a 33 34 32-38 37 00 00 00 00 00 00 |.....342 87......|
0070 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0080 00 00 00 05 03 01 06 0a-09 01 00 00 00 00 02 00 |........ ........|
0090 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
00a0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
00b0 00 00 00 31 30 2e 31 35-2e 32 2e 37 30 3a 35 30 |...10.15 .2.70:50|
00c0 30 30 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |00...... ........|
00d0 00 0f 6e 6f 74 31 63 6f-6d 6d 6f 6e 00 00 00 00 |..not1co mmon....|
00e0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
00f0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0100 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0110 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0120 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0130 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0140 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0150 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0160 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0170 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0180 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0190 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
01a0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
01b0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
01c0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
01d0 00 0a 04 02 00 00 44 42-2d 4c 69 62 72 61 72 79 |......DB -Library|
01e0 0a 00 00 00 00 00 0d 11-75 73 5f 65 6e 67 6c 69 |........ us_engli|
01f0 73 68 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |sh...... ........|

15:45:51.187751 34287 (net.c:741):Sending packet
0000 02 01 00 4c 00 00 00 00-00 00 00 00 00 00 0a 00 |...L.... ........|
0010 00 00 00 00 00 00 00 00-00 00 00 00 00 75 74 66 |........ .....utf|
0020 38 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |8....... ........|
0030 00 00 00 00 00 00 00 00-00 00 00 04 01 35 31 32 |........ .....512|
0040 00 00 00 03 00 00 00 00-00 00 00 00 |........ ....|

15:45:51.187930 34287 (token.c:328):tds_process_login_tokens()
15:45:51.314519 34287 (net.c:555):Received header
0000 04 01 00 70 00 00 00 00- |...p....|

15:45:51.314647 34287 (net.c:609):Received packet
0000 04 01 00 70 00 00 00 00-e3 0f 00 01 06 6d 61 73 |...p.... .....mas|
0010 74 65 72 06 6d 61 73 74-65 72 ab 3a 00 45 16 00 |ter.mast er.:.E..|
0020 00 02 00 26 00 43 68 61-6e 67 65 64 20 64 61 74 |...&.Cha nged dat|
0030 61 62 61 73 65 20 63 6f-6e 74 65 78 74 20 74 6f |abase co ntext to|
0040 20 27 6d 61 73 74 65 72-27 2e 0a 08 76 61 73 74 | 'master '...vast|
0050 67 5f 64 62 00 00 00 ad-0d 00 01 04 02 00 00 03 |g_db.... ........|
0060 41 53 45 0f 07 00 00 fd-00 00 02 00 33 00 00 00 |ASE..... ....3...|

15:45:51.314718 34287 (token.c:337):looking for login token, got e3(ENVCHANGE)
15:45:51.314742 34287 (token.c:122):tds_process_default_tokens() marker is e3(ENVCHANGE)
15:45:51.314774 34287 (dblib.c:327):db_env_chg(0x7f4ae5eccf70, 1, master, master)
15:45:51.314792 34287 (token.c:337):looking for login token, got ab(INFO)
15:45:51.314803 34287 (token.c:122):tds_process_default_tokens() marker is ab(INFO)
15:45:51.314814 34287 (token.c:2588):tds_process_msg() reading message 5701 from server
15:45:51.314831 34287 (token.c:2661):tds_process_msg() calling client msg handler
15:45:51.314843 34287 (dbutil.c:85):_dblib_handle_info_message(0x7f4ae5dd7d70, 0x7f4ae5eccf70, 0x7ffffe5d8df0)
15:45:51.314854 34287 (dbutil.c:86):msgno 5701: "Changed database context to 'master'.
"
15:45:51.315037 34287 (token.c:2674):tds_process_msg() returning TDS_SUCCEED
15:45:51.315059 34287 (token.c:337):looking for login token, got ad(LOGINACK)
15:45:51.315071 34287 (token.c:373):server reports TDS version 4.2.0.0
15:45:51.315083 34287 (token.c:375):Product name for 0x4020000 is unknown
15:45:51.315096 34287 (token.c:337):looking for login token, got fd(DONE)
15:45:51.315106 34287 (token.c:122):tds_process_default_tokens() marker is fd(DONE)
15:45:51.315122 34287 (token.c:2339):tds_process_end: more_results = 0
was_cancelled = 0
error = 0
done_count_valid = 0
15:45:51.315135 34287 (token.c:2355):tds_process_end() state set to TDS_IDLE
15:45:51.315145 34287 (token.c:2370): rows_affected = 51
15:45:51.315156 34287 (token.c:438):tds_process_login_tokens() returning TDS_SUCCEED
15:45:51.315178 34287 (mem.c:615):tds_free_all_results()
15:45:51.315190 34287 (util.c:156):Changed query state from IDLE to QUERYING
15:45:51.315205 34287 (util.c:156):Changed query state from QUERYING to PENDING
15:45:51.315216 34287 (net.c:741):Sending packet
0000 01 01 00 1b 00 00 00 00-73 65 74 20 74 65 78 74 |........ set text|
0010 73 69 7a 65 20 36 34 35-31 32 20 |size 645 12 |

15:45:51.315386 34287 (token.c:540):tds_process_tokens(0x7f4ae5eccf70, 0x7ffffe5d8f28, 0x7ffffe5d8f2c, 0x100)
15:45:51.315413 34287 (util.c:156):Changed query state from PENDING to READING
15:45:51.426652 34287 (net.c:555):Received header
0000 04 01 00 11 00 00 00 00- |........|

15:45:51.426750 34287 (net.c:609):Received packet
0000 04 01 00 11 00 00 00 00-fd 00 00 02 00 00 00 00 |........ ........|
0010 00 - |.|

15:45:51.426776 34287 (token.c:555):processing result tokens. marker is fd(DONE)
15:45:51.426792 34287 (token.c:2339):tds_process_end: more_results = 0
was_cancelled = 0
error = 0
done_count_valid = 0
15:45:51.426804 34287 (token.c:2355):tds_process_end() state set to TDS_IDLE
15:45:51.426815 34287 (util.c:156):Changed query state from READING to IDLE
15:45:51.426826 34287 (token.c:2370): rows_affected = 0
15:45:51.426837 34287 (util.c:104):logic error: cannot change query state from IDLE to PENDING
15:45:51.426847 34287 (token.c:540):tds_process_tokens(0x7f4ae5eccf70, 0x7ffffe5d8f28, 0x7ffffe5d8f2c, 0x100)
15:45:51.426859 34287 (token.c:543):tds_process_tokens() state is COMPLETED
15:45:51.426875 34287 (dblib.c:239):dblib_add_connection(0x7f4ad67d0760, 0x7f4ae5eccf70)
15:45:51.426892 34287 (dblib.c:1398):dbuse(0x7f4ae5dd5f50, sas_db)
15:45:51.426907 34287 (dblib.c:1312):dbcmd(0x7f4ae5dd5f50, use [sas_db])
15:45:51.426927 34287 (dblib.c:1319):dbcmd() bufsz = 0
15:45:51.426936 34287 (dblib.c:1369):dbsqlexec(0x7f4ae5dd5f50)
15:45:51.426977 34287 (dblib.c:6862):dbsqlsend(0x7f4ae5dd5f50)
15:45:51.426988 34287 (mem.c:615):tds_free_all_results()
15:45:51.426996 34287 (util.c:156):Changed query state from IDLE to QUERYING
15:45:51.427005 34287 (util.c:156):Changed query state from QUERYING to PENDING
15:45:51.427013 34287 (net.c:741):Sending packet
0000 01 01 00 14 00 00 00 00-75 73 65 20 5b 73 61 73 |........ use [sas|
0010 5f 64 62 5d - |_db]|

15:45:51.427191 34287 (dblib.c:4639):dbsqlok(0x7f4ae5dd5f50)
15:45:51.427211 34287 (dblib.c:4669):dbsqlok() not done, calling tds_process_tokens()
15:45:51.427219 34287 (token.c:540):tds_process_tokens(0x7f4ae5eccf70, 0x7ffffe5d9388, 0x7ffffe5d938c, 0x6914)
15:45:51.427228 34287 (util.c:156):Changed query state from PENDING to READING
15:45:51.541554 34287 (net.c:555):Received header
0000 04 01 00 60 00 00 00 00- |...`....|

15:45:51.541627 34287 (net.c:609):Received packet
0000 04 01 00 60 00 00 00 00-e3 0f 00 01 06 73 61 73 |...`.... .....sas|
0010 5f 64 62 06 6d 61 73 74-65 72 ab 3a 00 45 16 00 |_db.mast er.:.E..|
0020 00 01 00 26 00 43 68 61-6e 67 65 64 20 64 61 74 |...&.Cha nged dat|
0030 61 62 61 73 65 20 63 6f-6e 74 65 78 74 20 74 6f |abase co ntext to|
0040 20 27 73 61 73 5f 64 62-27 2e 0a 08 76 61 73 74 | 'sas_db '...vast|
0050 67 5f 64 62 00 01 00 fd-00 00 02 00 00 00 00 00 |g_db.... ........|

15:45:51.541673 34287 (token.c:555):processing result tokens. marker is e3(ENVCHANGE)
15:45:51.541683 34287 (token.c:122):tds_process_default_tokens() marker is e3(ENVCHANGE)
15:45:51.541695 34287 (dblib.c:327):db_env_chg(0x7f4ae5eccf70, 1, master, sas_db)
15:45:51.541706 34287 (token.c:555):processing result tokens. marker is ab(INFO)
15:45:51.541714 34287 (token.c:122):tds_process_default_tokens() marker is ab(INFO)
15:45:51.541722 34287 (token.c:2588):tds_process_msg() reading message 5701 from server
15:45:51.541733 34287 (token.c:2661):tds_process_msg() calling client msg handler
15:45:51.541741 34287 (dbutil.c:85):_dblib_handle_info_message(0x7f4ae5dd7d70, 0x7f4ae5eccf70, 0x7ffffe5d91e0)
15:45:51.541750 34287 (dbutil.c:86):msgno 5701: "Changed database context to 'sas_db'.
"
15:45:51.542038 34287 (token.c:2674):tds_process_msg() returning TDS_SUCCEED
15:45:51.542067 34287 (token.c:555):processing result tokens. marker is fd(DONE)
15:45:51.542078 34287 (token.c:2339):tds_process_end: more_results = 0
was_cancelled = 0
error = 0
done_count_valid = 0
15:45:51.542087 34287 (token.c:2355):tds_process_end() state set to TDS_IDLE
15:45:51.542094 34287 (util.c:156):Changed query state from READING to IDLE
15:45:51.542102 34287 (token.c:2370): rows_affected = 0
15:45:51.542109 34287 (util.c:104):logic error: cannot change query state from IDLE to PENDING
15:45:51.542125 34287 (dblib.c:4707):dbsqlok() end status is SUCCEED
15:45:51.542134 34287 (dblib.c:4718):dbsqlok() end status was success
15:45:51.542144 34287 (dblib.c:1668):dbresults(0x7f4ae5dd5f50)
15:45:51.542153 34287 (dblib.c:1674):dbresults: dbresults_state is 5 (_DB_RES_SUCCEED)
15:45:51.542161 34287 (dblib.c:1657):dbresults returning 1 (SUCCEED)
15:45:51.542169 34287 (dblib.c:5854):dbcanquery(0x7f4ae5dd5f50)
15:45:51.542176 34287 (token.c:540):tds_process_tokens(0x7f4ae5eccf70, 0x7ffffe5d93ac, (nil), 0x108)
15:45:51.542222 34287 (token.c:543):tds_process_tokens() state is COMPLETED
15:45:51.542232 34287 (dblib.c:1312):dbcmd(0x7f4ae5dd5f50, select * from web_app.ApiSession)
15:45:51.542240 34287 (dblib.c:1319):dbcmd() bufsz = 13
15:45:51.542247 34287 (dblib.c:5882):dbfreebuf(0x7f4ae5dd5f50)
15:45:51.542255 34287 (dblib.c:1369):dbsqlexec(0x7f4ae5dd5f50)
15:45:51.542263 34287 (dblib.c:6862):dbsqlsend(0x7f4ae5dd5f50)
15:45:51.542272 34287 (mem.c:615):tds_free_all_results()
15:45:51.542280 34287 (util.c:156):Changed query state from IDLE to QUERYING
15:45:51.542289 34287 (util.c:156):Changed query state from QUERYING to PENDING
15:45:51.542297 34287 (net.c:741):Sending packet
0000 01 01 00 28 00 00 00 00-73 65 6c 65 63 74 20 2a |...(.... select *|
0010 20 66 72 6f 6d 20 77 65-62 5f 61 70 70 2e 41 70 | from we b_app.Ap|
0020 69 53 65 73 73 69 6f 6e- |iSession|

15:45:51.542470 34287 (dblib.c:4639):dbsqlok(0x7f4ae5dd5f50)
15:45:51.542490 34287 (dblib.c:4669):dbsqlok() not done, calling tds_process_tokens()
15:45:51.542498 34287 (token.c:540):tds_process_tokens(0x7f4ae5eccf70, 0x7ffffe5d93e8, 0x7ffffe5d93ec, 0x6914)
15:45:51.542507 34287 (util.c:156):Changed query state from PENDING to READING
15:45:51.656744 34287 (net.c:555):Received header
0000 04 00 02 00 00 00 00 00- |........|

15:45:51.656815 34287 (net.c:609):Received packet
0000 04 00 02 00 00 00 00 00-7c 73 0a 69 71 00 00 00 |........ |s.iq...|
0010 00 a0 96 00 0c 41 70 69-53 65 73 73 69 6f 6e 49 |.....Api SessionI|
0020 64 14 41 70 69 53 65 73-73 69 6f 6e 43 72 65 61 |d.ApiSes sionCrea|
0030 74 6f 72 55 49 44 14 41-64 6d 69 6e 69 73 74 72 |torUID.A dministr|
0040 61 74 6f 72 4c 6f 67 69-6e 49 64 10 4d 65 65 74 |atorLogi nId.Meet|
0050 69 6e 67 53 65 73 73 69-6f 6e 49 64 13 41 70 69 |ingSessi onId.Api|
0060 53 65 73 73 69 6f 6e 55-73 65 72 4e 6f 74 65 73 |SessionU serNotes|
0070 12 41 70 69 53 65 73 73-69 6f 6e 4d 6f 64 4e 6f |.ApiSess ionModNo|
0080 74 65 73 13 41 70 69 53-65 73 73 69 6f 6e 49 73 |tes.ApiS essionIs|
0090 44 65 6c 65 74 65 64 12-41 70 69 53 65 73 73 69 |Deleted. ApiSessi|
00a0 6f 6e 52 65 6d 6f 74 65-49 64 a1 60 00 2b 00 00 |onRemote Id.`.+..|
00b0 00 6d 08 23 00 00 00 e1-40 00 00 00 2b 00 00 00 |.m.#.... @...+...|
00c0 6d 08 2b 00 00 00 6d 08-14 00 00 00 22 00 fc 00 |m.+...m. ...."...|
00d0 00 12 00 77 65 62 5f 61-70 70 2e 41 70 69 53 65 |...web_a pp.ApiSe|
00e0 73 73 69 6f 6e 14 00 00-00 22 00 fc 00 00 12 00 |ssion... ."......|
00f0 77 65 62 5f 61 70 70 2e-41 70 69 53 65 73 73 69 |web_app. ApiSessi|
0100 6f 6e 10 00 00 00 32 2b-00 00 00 6d 08 ae 08 00 |on....2+ ...m....|
0110 00 00 00 00 00 00 00 00-d1 08 00 00 00 00 00 00 |........ ........|
0120 f0 3f 2a 00 00 00 62 00-72 00 75 00 63 00 65 00 |.?...b. r.u.c.e.|
0130 73 00 40 00 65 00 6c 00-6c 00 75 00 6d 00 69 00 |[email protected]. l.u.m.i.|
0140 6e 00 61 00 74 00 65 00-2e 00 63 00 6f 00 6d 00 |n.a.t.e. ..c.o.m.|
0150 08 00 00 00 00 28 cd 02-41 08 00 00 00 00 20 de |.....(.. A..... .|
0160 fd 40 10 5a 04 00 00 00-00 00 00 00 00 00 00 eb |[email protected].... ........|
0170 b0 4c 00 00 00 00 00 00-4c b0 eb 02 00 00 00 20 |.L...... L...... |
0180 00 10 5b 04 00 00 00 00-00 00 00 00 00 00 f2 b0 |..[..... ........|
0190 4c 00 00 00 00 00 00 4c-b0 f2 02 00 00 00 20 00 |L......L ...... .|
01a0 01 08 00 00 00 00 00 00-f0 3f d1 08 00 00 00 00 |........ .?......|
01b0 00 00 00 40 2a 00 00 00-62 00 72 00 75 00 63 00 |...@
... b.r.u.c.|
01c0 65 00 73 00 40 00 65 00-6c 00 6c 00 75 00 6d 00 |[email protected]. l.l.u.m.|
01d0 69 00 6e 00 61 00 74 00-65 00 2e 00 63 00 6f 00 |i.n.a.t. e...c.o.|
01e0 6d 00 08 00 00 00 00 28-cd 02 41 08 00 00 00 00 |m......( ..A.....|
01f0 30 de fd 40 10 5c 04 00-00 00 00 00 00 00 00 00 |0..@... ........|

15:45:51.656965 34287 (token.c:555):processing result tokens. marker is 7c(PROCID)
15:45:51.656973 34287 (token.c:122):tds_process_default_tokens() marker is 7c(PROCID)
15:45:51.656980 34287 (token.c:555):processing result tokens. marker is a0(COLNAME)
15:45:51.656993 34287 (mem.c:615):tds_free_all_results()
15:45:51.657024 34287 (token.c:555):processing result tokens. marker is a1(COLFMT)
15:45:51.657034 34287 (token.c:1025):processing result. type = 109(float-null), varint_size 1
15:45:51.657042 34287 (token.c:1025):processing result. type = 35(text), varint_size 1
15:45:51.657258 34287 (token.c:3420):adjust_character_column_size:
Server charset: UTF-16LE
Server column_size: 64
Client charset: UTF-8
Client column_size: 128
15:45:51.657274 34287 (token.c:1025):processing result. type = 0(), varint_size 1
15:45:51.657282 34287 (token.c:1025):processing result. type = 0(), varint_size 1
15:45:51.657289 34287 (token.c:1025):processing result. type = 0(), varint_size 1
15:45:51.657296 34287 (token.c:1025):processing result. type = 0(), varint_size 1
15:45:51.657302 34287 (token.c:1025):processing result. type = 98(variant), varint_size 1
15:45:51.657325 34287 (token.c:1025):processing result. type = 65(), varint_size 1
15:45:51.657333 34287 (token.c:1053):NOTE:tds_process_col_fmt: draining 48 bytes
15:45:51.657341 34287 (util.c:156):Changed query state from READING to PENDING
15:45:51.657350 34287 (dblib.c:4700):dbsqlok() found result token
15:45:51.657357 34287 (dblib.c:1668):dbresults(0x7f4ae5dd5f50)
15:45:51.657364 34287 (dblib.c:1674):dbresults: dbresults_state is 1 (_DB_RES_RESULTSET_EMPTY)
15:45:51.657371 34287 (token.c:540):tds_process_tokens(0x7f4ae5eccf70, 0x7ffffe5d93d8, 0x7ffffe5d93dc, 0x6914)
15:45:51.657378 34287 (util.c:156):Changed query state from PENDING to READING
15:45:51.657384 34287 (token.c:555):processing result tokens. marker is ae(CONTROL)
15:45:51.657391 34287 (token.c:122):tds_process_default_tokens() marker is ae(CONTROL)
15:45:51.657397 34287 (token.c:237):Eating CONTROL token
15:45:51.657404 34287 (token.c:555):processing result tokens. marker is d1(ROW)
15:45:51.657411 34287 (token.c:666):tds_process_tokens::SET_RETURN stopping on current token
15:45:51.657417 34287 (util.c:156):Changed query state from READING to PENDING
15:45:51.657423 34287 (dblib.c:1695):dbresults() tds_process_tokens returned 1 (TDS_SUCCEED),
result_type TDS_ROW_RESULT
15:45:51.657430 34287 (dblib.c:1657):dbresults returning 1 (SUCCEED)
15:45:51.657441 34287 (dblib.c:2018):dbnextrow(0x7f4ae5dd5f50)
15:45:51.657448 34287 (dblib.c:2031):dbnextrow() dbresults_state = 2 (_DB_RES_RESULTSET_ROWS)
15:45:51.657455 34287 (token.c:540):tds_process_tokens(0x7f4ae5eccf70, 0x7ffffe5d93ec, (nil), 0x1508)
15:45:51.657464 34287 (util.c:156):Changed query state from PENDING to READING
15:45:51.657470 34287 (token.c:555):processing result tokens. marker is d1(ROW)
15:45:51.657477 34287 (token.c:2304):tds_process_row(): reading column 0
15:45:51.657483 34287 (token.c:2049):tds_get_data: type 109, varint size 1
15:45:51.657490 34287 (token.c:2110):tds_get_data(): wire column size is 8
15:45:51.657496 34287 (token.c:2304):tds_process_row(): reading column 1
15:45:51.657502 34287 (token.c:2049):tds_get_data: type 35, varint size 1
15:45:51.657508 34287 (token.c:2110):tds_get_data(): wire column size is 42
15:45:51.657522 34287 (token.c:2304):tds_process_row(): reading column 2
15:45:51.657529 34287 (token.c:2049):tds_get_data: type 0, varint size 1
15:45:51.657535 34287 (token.c:2110):tds_get_data(): wire column size is -1
15:45:51.657541 34287 (token.c:2304):tds_process_row(): reading column 3
15:45:51.657547 34287 (token.c:2049):tds_get_data: type 0, varint size 1
15:45:51.657553 34287 (token.c:2110):tds_get_data(): wire column size is 109
15:45:51.657560 34287 (token.c:2304):tds_process_row(): reading column 4
15:45:51.657566 34287 (token.c:2049):tds_get_data: type 0, varint size 1
15:45:51.657572 34287 (token.c:2110):tds_get_data(): wire column size is 117
15:45:51.660163 34287 (net.c:555):Received header
0000 04 00 02 00 00 00 00 00- |........|

15:45:51.660215 34287 (net.c:609):Received packet
0000 04 00 02 00 00 00 00 00-00 fb b0 4c 00 00 00 00 |........ ...L....|
0010 00 00 4c b0 fb 02 00 00-00 20 00 10 5d 04 00 00 |..L..... . ..]...|
0020 00 00 00 00 00 00 00 00-02 b1 4c 00 00 00 00 00 |........ ..L.....|
0030 00 4c b1 02 02 00 00 00-20 00 00 08 00 00 00 00 |.L...... .......|
0040 00 00 00 40 d1 08 00 00-00 00 00 00 08 40 2a 00 |...@.... .....@.|
0050 00 00 62 00 72 00 75 00-63 00 65 00 73 00 40 00 |..b.r.u. c.e.s.@.|
0060 65 00 6c 00 6c 00 75 00-6d 00 69 00 6e 00 61 00 |e.l.l.u. m.i.n.a.|
0070 74 00 65 00 2e 00 63 00-6f 00 6d 00 08 00 00 00 |t.e...c. o.m.....|
0080 00 28 cd 02 41 08 00 00-00 00 40 de fd 40 10 5e |.(..A... ..@..@.^|
0090 04 00 00 00 00 00 00 00-00 00 00 0b b1 4c 00 00 |........ .....L..|
00a0 00 00 00 00 4c b1 0b 02-00 00 00 20 00 10 5f 04 |....L... ... ..
.|
00b0 00 00 00 00 00 00 00 00-00 00 12 b1 4c 00 00 00 |........ ....L...|
00c0 00 00 00 4c b1 12 02 00-00 00 20 00 00 08 00 00 |...L.... .. .....|
00d0 00 00 00 00 08 40 d1 08-00 00 00 00 00 00 10 40 |.....@.. .......@|
00e0 2a 00 00 00 62 00 72 00-75 00 63 00 65 00 73 00 |_...b.r. u.c.e.s.|
00f0 40 00 65 00 6c 00 6c 00-75 00 6d 00 69 00 6e 00 |@.e.l.l. u.m.i.n.|
0100 61 00 74 00 65 00 2e 00-63 00 6f 00 6d 00 08 00 |a.t.e... c.o.m...|
0110 00 00 00 28 cd 02 41 08-00 00 00 00 40 ab fe 40 |...(..A. ....@..@|
0120 10 80 01 23 00 00 00 00-00 00 00 00 00 1b b1 4c |...#.... .......L|
0130 00 00 00 00 00 00 4c b1-1b 02 00 00 00 20 00 10 |......L. ..... ..|
0140 81 01 23 00 00 00 00 00-00 00 00 00 23 b1 4c 00 |..#..... ....#.L.|
0150 00 00 00 00 00 4c b1 23-02 00 00 00 20 00 00 08 |.....L.# .... ...|
0160 00 00 00 00 00 00 10 40-d1 08 00 00 00 00 00 00 |.......@ ........|
0170 24 40 12 00 00 00 75 00-69 00 67 00 63 00 61 00 |[email protected]. i.g.c.a.|
0180 64 00 6d 00 69 00 6e 00-08 00 00 00 00 68 14 03 |d.m.i.n. .....h..|
0190 41 08 00 00 00 00 18 24-00 41 10 82 01 23 00 00 |A......$ .A...#..|
01a0 00 00 00 00 00 00 00 2b-b1 4c 00 00 00 00 00 00 |.......+ .L......|
01b0 4c b1 2b 02 00 00 00 20-00 10 83 01 23 00 00 00 |L.+.... ....#...|
01c0 00 00 00 00 00 00 32 b1-4c 00 00 00 00 00 00 4c |......2. L......L|
01d0 b1 32 02 00 00 00 20 00-00 08 00 00 00 00 00 00 |.2.... . ........|
01e0 24 40 d1 08 00 00 00 00-00 00 26 40 12 00 00 00 |$@...... ..&@....|
01f0 75 00 69 00 67 00 63 00-61 00 64 00 6d 00 69 00 |u.i.g.c. a.d.m.i.|

15:45:51.660685 34287 (token.c:2304):tds_process_row(): reading column 5
15:45:51.660701 34287 (token.c:2049):tds_get_data: type 0, varint size 1
15:45:51.660711 34287 (token.c:2110):tds_get_data(): wire column size is -1
15:45:51.660721 34287 (token.c:2304):tds_process_row(): reading column 6
15:45:51.660731 34287 (token.c:2049):tds_get_data: type 98, varint size 1
15:45:51.660741 34287 (token.c:2110):tds_get_data(): wire column size is 8
15:45:51.660752 34287 (token.c:2304):tds_process_row(): reading column 7
15:45:51.660763 34287 (token.c:2049):tds_get_data: type 65, varint size 1
15:45:51.660772 34287 (token.c:2110):tds_get_data(): wire column size is 209
15:45:51.660782 34287 (util.c:156):Changed query state from READING to PENDING
15:45:51.660799 34287 (buffering.h:306):buffer_transfer_bound_data(0x7f4ae5dd5f60 4040 -1 0x7f4ae5dd5f50 0)
15:45:51.660814 34287 (dblib.c:2100):leaving dbnextrow() returning REG_ROW/MORE_ROWS
15:45:51.660828 34287 (dblib.c:2761):dbcount(0x7f4ae5dd5f50)
15:45:51.660839 34287 (dblib.c:1443):dbclose(0x7f4ae5dd5f50)
15:45:51.660850 34287 (dblib.c:258):dblib_del_connection(0x7f4ad67d0760, 0x7f4ae5eccf70)
15:45:51.660862 34287 (mem.c:615):tds_free_all_results()
15:45:51.661260 34287 (util.c:156):Changed query state from PENDING to DEAD
15:45:51.661390 34287 (dblib.c:305):dblib_release_tds_ctx(1)
15:45:51.661421 34287 (dblib.c:5882):dbfreebuf(0x7f4ae5dd5f50)
15:45:51.661433 34287 (dblib.c:739):dbloginfree(0x7f4ae5dd7dc0)
15:45:51.661443 34287 (dblib.c:1512):dbexit(void)
15:45:51.661456 34287 (dblib.c:305):dblib_release_tds_ctx(1)
15:45:51.661599 34287 (dblib.c:670):dbinit(void)
15:45:51.661618 34287 (dblib.c:273):dblib_get_tds_ctx(void)
15:45:51.661630 34287 (locale.c:69):Attempting to read locales.conf file
15:45:51.661658 34287 (dblib.c:4945):dberrhandle(0x7f4ad67d2800)
15:45:51.661670 34287 (dblib.c:4964):dbmsghandle(0x7f4ad67d37b0)
15:45:51.661724 34287 (dblib.c:713):dblogin(void)
15:45:51.661739 34287 (dblib.c:761):dbsetlname(0x7f4ae5eee250, sa, 2)
15:45:51.661749 34287 (dblib.c:761):dbsetlname(0x7f4ae5eee250, not1common, 3)
15:45:51.661758 34287 (dblib.c:1146):dbopen(0x7f4ae5eee250, 10.15.2.70:5000, [sybase])
15:45:51.661769 34287 (dblib.c:273):dblib_get_tds_ctx(void)
15:45:51.661785 34287 (config.c:185):Getting connection information for [10.15.2.70:5000].
15:45:51.661791 34287 (config.c:189):Attempting to read conf files.
15:45:51.661797 34287 (config.c:354):... $FREETDSCONF not set. Trying $FREETDS/etc.
15:45:51.661802 34287 (config.c:367):... $FREETDS not set. Trying $HOME.
15:45:51.661862 34287 (config.c:293):Could not open '/var/lib/postgresql/.freetds.conf' ((.freetds.conf)).
15:45:51.661876 34287 (config.c:297):Found conf file '/etc/freetds/freetds.conf' (default).
15:45:51.661882 34287 (config.c:483):Looking for section global.
15:45:51.661911 34287 (config.c:540): Found section global.
15:45:51.661918 34287 (config.c:543):Got a match.
15:45:51.661925 34287 (config.c:565): dump file = '/tmp/freetds.log'
15:45:51.661931 34287 (config.c:565): debug flags = '0xffff'
15:45:51.661937 34287 (config.c:565): timeout = '30'
15:45:51.661943 34287 (config.c:565): connect timeout = '10'
15:45:51.661949 34287 (config.c:565): text size = '64512'
15:45:51.661955 34287 (config.c:540): Found section sybase.
15:45:51.661961 34287 (config.c:540): Found section egserver70.
15:45:51.661968 34287 (config.c:554): Reached EOF
15:45:51.661973 34287 (config.c:483):Looking for section 10.15.2.70:5000.
15:45:51.661980 34287 (config.c:540): Found section global.
15:45:51.661988 34287 (config.c:540): Found section sybase.
15:45:51.661994 34287 (config.c:540): Found section egserver70.
15:45:51.662000 34287 (config.c:554): Reached EOF
15:45:51.662004 34287 (config.c:303):[10.15.2.70:5000] not found.
15:45:51.662040 34287 (config.c:354):... $FREETDSCONF not set. Trying $FREETDS/etc.
15:45:51.662049 34287 (config.c:367):... $FREETDS not set. Trying $HOME.
15:45:51.662097 34287 (config.c:293):Could not open '/var/lib/postgresql/.freetds.conf' ((.freetds.conf)).
15:45:51.662120 34287 (config.c:297):Found conf file '/etc/freetds/freetds.conf' (default).
15:45:51.662132 34287 (config.c:483):Looking for section global.
15:45:51.662155 34287 (config.c:540): Found section global.
15:45:51.662168 34287 (config.c:543):Got a match.
15:45:51.662180 34287 (config.c:565): dump file = '/tmp/freetds.log'
15:45:51.662193 34287 (config.c:565): debug flags = '0xffff'
15:45:51.662206 34287 (config.c:565): timeout = '30'
15:45:51.662218 34287 (config.c:565): connect timeout = '10'
15:45:51.662229 34287 (config.c:565): text size = '64512'
15:45:51.662240 34287 (config.c:540): Found section sybase.
15:45:51.662253 34287 (config.c:540): Found section egserver70.
15:45:51.662267 34287 (config.c:554): Reached EOF
15:45:51.662278 34287 (config.c:483):Looking for section 10.15.2.70.
15:45:51.662292 34287 (config.c:540): Found section global.
15:45:51.662307 34287 (config.c:540): Found section sybase.
15:45:51.662319 34287 (config.c:540): Found section egserver70.
15:45:51.662329 34287 (config.c:554): Reached EOF
15:45:51.662337 34287 (config.c:303):[10.15.2.70] not found.
15:45:51.662364 34287 (iconv.c:330):tds_iconv_open(0x7f4ae5dd7d50, UTF-8)
15:45:51.662393 34287 (iconv.c:349):setting up conversions for client charset "UTF-8"
15:45:51.662398 34287 (iconv.c:351):preparing iconv for "UTF-8" <-> "UCS-2LE" conversion
15:45:51.662418 34287 (iconv.c:391):preparing iconv for "ISO-8859-1" <-> "ISO-8859-1" conversion
15:45:51.662425 34287 (iconv.c:394):tds_iconv_open: done
15:45:51.662432 34287 (net.c:205):Connecting to 10.15.2.70 port 5000 (TDS version 4.2)
15:45:51.662565 34287 (net.c:270):tds_open_socket: connect(2) returned "Operation now in progress"
15:45:51.781873 34287 (net.c:310):tds_open_socket() succeeded
15:45:51.781934 34287 (util.c:156):Changed query state from DEAD to IDLE
15:45:51.781993 34287 (net.c:741):Sending packet
0000 02 00 02 00 00 00 00 00-62 69 74 61 72 65 6e 61 |........ bitarena|
0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0020 00 00 00 00 00 00 08 73-61 00 00 00 00 00 00 00 |.......s a.......|
0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0040 00 00 00 00 00 02 6e 6f-74 31 63 6f 6d 6d 6f 6e |......no t1common|
0050 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0060 00 00 00 00 0a 33 34 32-38 37 00 00 00 00 00 00 |.....342 87......|
0070 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0080 00 00 00 05 03 01 06 0a-09 01 00 00 00 00 02 00 |........ ........|
0090 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
00a0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
00b0 00 00 00 31 30 2e 31 35-2e 32 2e 37 30 3a 35 30 |...10.15 .2.70:50|
00c0 30 30 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |00...... ........|
00d0 00 0f 6e 6f 74 31 63 6f-6d 6d 6f 6e 00 00 00 00 |..not1co mmon....|
00e0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
00f0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0100 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0110 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0120 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0130 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0140 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0150 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0160 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0170 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0180 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0190 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
01a0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
01b0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
01c0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
01d0 00 0a 04 02 00 00 44 42-2d 4c 69 62 72 61 72 79 |......DB -Library|
01e0 0a 00 00 00 00 00 0d 11-75 73 5f 65 6e 67 6c 69 |........ us_engli|
01f0 73 68 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |sh...... ........|

15:45:51.782248 34287 (net.c:741):Sending packet
0000 02 01 00 4c 00 00 00 00-00 00 00 00 00 00 0a 00 |...L.... ........|
0010 00 00 00 00 00 00 00 00-00 00 00 00 00 75 74 66 |........ .....utf|
0020 38 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |8....... ........|
0030 00 00 00 00 00 00 00 00-00 00 00 04 01 35 31 32 |........ .....512|
0040 00 00 00 03 00 00 00 00-00 00 00 00 |........ ....|

15:45:51.782395 34287 (token.c:328):tds_process_login_tokens()
15:45:51.912087 34287 (net.c:555):Received header
0000 04 01 00 70 00 00 00 00- |...p....|

15:45:51.912214 34287 (net.c:609):Received packet
0000 04 01 00 70 00 00 00 00-e3 0f 00 01 06 6d 61 73 |...p.... .....mas|
0010 74 65 72 06 6d 61 73 74-65 72 ab 3a 00 45 16 00 |ter.mast er.:.E..|
0020 00 02 00 26 00 43 68 61-6e 67 65 64 20 64 61 74 |...&.Cha nged dat|
0030 61 62 61 73 65 20 63 6f-6e 74 65 78 74 20 74 6f |abase co ntext to|
0040 20 27 6d 61 73 74 65 72-27 2e 0a 08 76 61 73 74 | 'master '...vast|
0050 67 5f 64 62 00 00 00 ad-0d 00 01 04 02 00 00 03 |g_db.... ........|
0060 41 53 45 0f 07 00 00 fd-00 00 02 00 5c 00 00 00 |ASE..... .......|

15:45:51.912284 34287 (token.c:337):looking for login token, got e3(ENVCHANGE)
15:45:51.912297 34287 (token.c:122):tds_process_default_tokens() marker is e3(ENVCHANGE)
15:45:51.912315 34287 (dblib.c:327):db_env_chg(0x7f4ae5dd7d50, 1, master, master)
15:45:51.912329 34287 (token.c:337):looking for login token, got ab(INFO)
15:45:51.912339 34287 (token.c:122):tds_process_default_tokens() marker is ab(INFO)
15:45:51.912351 34287 (token.c:2588):tds_process_msg() reading message 5701 from server
15:45:51.912367 34287 (token.c:2661):tds_process_msg() calling client msg handler
15:45:51.912377 34287 (dbutil.c:85):_dblib_handle_info_message(0x7f4ae5edcfd0, 0x7f4ae5dd7d50, 0x7ffffe5d9090)
15:45:51.912388 34287 (dbutil.c:86):msgno 5701: "Changed database context to 'master'.
"
15:45:51.912839 34287 (token.c:2674):tds_process_msg() returning TDS_SUCCEED
15:45:51.912869 34287 (token.c:337):looking for login token, got ad(LOGINACK)
15:45:51.912881 34287 (token.c:373):server reports TDS version 4.2.0.0
15:45:51.912892 34287 (token.c:375):Product name for 0x4020000 is unknown
15:45:51.912905 34287 (token.c:337):looking for login token, got fd(DONE)
15:45:51.912916 34287 (token.c:122):tds_process_default_tokens() marker is fd(DONE)
15:45:51.912927 34287 (token.c:2339):tds_process_end: more_results = 0
was_cancelled = 0
error = 0
done_count_valid = 0
15:45:51.912938 34287 (token.c:2355):tds_process_end() state set to TDS_IDLE
15:45:51.912948 34287 (token.c:2370): rows_affected = 92
15:45:51.912958 34287 (token.c:438):tds_process_login_tokens() returning TDS_SUCCEED
15:45:51.913001 34287 (mem.c:615):tds_free_all_results()
15:45:51.913015 34287 (util.c:156):Changed query state from IDLE to QUERYING
15:45:51.913027 34287 (util.c:156):Changed query state from QUERYING to PENDING
15:45:51.913038 34287 (net.c:741):Sending packet
0000 01 01 00 1b 00 00 00 00-73 65 74 20 74 65 78 74 |........ set text|
0010 73 69 7a 65 20 36 34 35-31 32 20 |size 645 12 |

15:45:51.913302 34287 (token.c:540):tds_process_tokens(0x7f4ae5dd7d50, 0x7ffffe5d91c8, 0x7ffffe5d91cc, 0x100)
15:45:51.913332 34287 (util.c:156):Changed query state from PENDING to READING
15:45:52.026788 34287 (net.c:555):Received header
0000 04 01 00 11 00 00 00 00- |........|

15:45:52.026862 34287 (net.c:609):Received packet
0000 04 01 00 11 00 00 00 00-fd 00 00 02 00 00 00 00 |........ ........|
0010 00 - |.|

15:45:52.026881 34287 (token.c:555):processing result tokens. marker is fd(DONE)
15:45:52.026894 34287 (token.c:2339):tds_process_end: more_results = 0
was_cancelled = 0
error = 0
done_count_valid = 0
15:45:52.026902 34287 (token.c:2355):tds_process_end() state set to TDS_IDLE
15:45:52.026910 34287 (util.c:156):Changed query state from READING to IDLE
15:45:52.026919 34287 (token.c:2370): rows_affected = 0
15:45:52.026927 34287 (util.c:104):logic error: cannot change query state from IDLE to PENDING
15:45:52.026935 34287 (token.c:540):tds_process_tokens(0x7f4ae5dd7d50, 0x7ffffe5d91c8, 0x7ffffe5d91cc, 0x100)
15:45:52.026944 34287 (token.c:543):tds_process_tokens() state is COMPLETED
15:45:52.026956 34287 (dblib.c:239):dblib_add_connection(0x7f4ad67d0760, 0x7f4ae5dd7d50)
15:45:52.027000 34287 (dblib.c:1398):dbuse(0x7f4ae5eccf70, sas_db)
15:45:52.027027 34287 (dblib.c:1312):dbcmd(0x7f4ae5eccf70, use [sas_db])
15:45:52.027041 34287 (dblib.c:1319):dbcmd() bufsz = 0
15:45:52.027052 34287 (dblib.c:1369):dbsqlexec(0x7f4ae5eccf70)
15:45:52.027063 34287 (dblib.c:6862):dbsqlsend(0x7f4ae5eccf70)
15:45:52.027074 34287 (mem.c:615):tds_free_all_results()
15:45:52.027085 34287 (util.c:156):Changed query state from IDLE to QUERYING
15:45:52.027097 34287 (util.c:156):Changed query state from QUERYING to PENDING
15:45:52.027107 34287 (net.c:741):Sending packet
0000 01 01 00 14 00 00 00 00-75 73 65 20 5b 73 61 73 |........ use [sas|
0010 5f 64 62 5d - |_db]|

15:45:52.027299 34287 (dblib.c:4639):dbsqlok(0x7f4ae5eccf70)
15:45:52.027327 34287 (dblib.c:4669):dbsqlok() not done, calling tds_process_tokens()
15:45:52.027339 34287 (token.c:540):tds_process_tokens(0x7f4ae5dd7d50, 0x7ffffe5d9628, 0x7ffffe5d962c, 0x6914)
15:45:52.027350 34287 (util.c:156):Changed query state from PENDING to READING
15:45:52.144390 34287 (net.c:555):Received header
0000 04 01 00 60 00 00 00 00- |...`....|

15:45:52.144481 34287 (net.c:609):Received packet
0000 04 01 00 60 00 00 00 00-e3 0f 00 01 06 73 61 73 |...`.... .....sas|
0010 5f 64 62 06 6d 61 73 74-65 72 ab 3a 00 45 16 00 |_db.mast er.:.E..|
0020 00 01 00 26 00 43 68 61-6e 67 65 64 20 64 61 74 |...&.Cha nged dat|
0030 61 62 61 73 65 20 63 6f-6e 74 65 78 74 20 74 6f |abase co ntext to|
0040 20 27 73 61 73 5f 64 62-27 2e 0a 08 76 61 73 74 | 'sas_db '...vast|
0050 67 5f 64 62 00 01 00 fd-00 00 02 00 00 00 00 00 |g_db.... ........|

15:45:52.144543 34287 (token.c:555):processing result tokens. marker is e3(ENVCHANGE)
15:45:52.144556 34287 (token.c:122):tds_process_default_tokens() marker is e3(ENVCHANGE)
15:45:52.144574 34287 (dblib.c:327):db_env_chg(0x7f4ae5dd7d50, 1, master, sas_db)
15:45:52.144590 34287 (token.c:555):processing result tokens. marker is ab(INFO)
15:45:52.144601 34287 (token.c:122):tds_process_default_tokens() marker is ab(INFO)
15:45:52.144612 34287 (token.c:2588):tds_process_msg() reading message 5701 from server
15:45:52.144626 34287 (token.c:2661):tds_process_msg() calling client msg handler
15:45:52.144637 34287 (dbutil.c:85):_dblib_handle_info_message(0x7f4ae5edcfd0, 0x7f4ae5dd7d50, 0x7ffffe5d9480)
15:45:52.144680 34287 (dbutil.c:86):msgno 5701: "Changed database context to 'sas_db'.
"
15:45:52.145166 34287 (token.c:2674):tds_process_msg() returning TDS_SUCCEED
15:45:52.145204 34287 (token.c:555):processing result tokens. marker is fd(DONE)
15:45:52.145228 34287 (token.c:2339):tds_process_end: more_results = 0
was_cancelled = 0
error = 0
done_count_valid = 0
15:45:52.145252 34287 (token.c:2355):tds_process_end() state set to TDS_IDLE
15:45:52.145273 34287 (util.c:156):Changed query state from READING to IDLE
15:45:52.145291 34287 (token.c:2370): rows_affected = 0
15:45:52.145309 34287 (util.c:104):logic error: cannot change query state from IDLE to PENDING
15:45:52.145321 34287 (dblib.c:4707):dbsqlok() end status is SUCCEED
15:45:52.145331 34287 (dblib.c:4718):dbsqlok() end status was success
15:45:52.145341 34287 (dblib.c:1668):dbresults(0x7f4ae5eccf70)
15:45:52.145352 34287 (dblib.c:1674):dbresults: dbresults_state is 5 (_DB_RES_SUCCEED)
15:45:52.145363 34287 (dblib.c:1657):dbresults returning 1 (SUCCEED)
15:45:52.145373 34287 (dblib.c:5854):dbcanquery(0x7f4ae5eccf70)
15:45:52.145383 34287 (token.c:540):tds_process_tokens(0x7f4ae5dd7d50, 0x7ffffe5d964c, (nil), 0x108)
15:45:52.145398 34287 (token.c:543):tds_process_tokens() state is COMPLETED
15:45:52.145516 34287 (dblib.c:1312):dbcmd(0x7f4ae5eccf70, select * from web_app.ApiSession)
15:45:52.145548 34287 (dblib.c:1319):dbcmd() bufsz = 13
15:45:52.145569 34287 (dblib.c:5882):dbfreebuf(0x7f4ae5eccf70)
15:45:52.145591 34287 (dblib.c:1369):dbsqlexec(0x7f4ae5eccf70)
15:45:52.145611 34287 (dblib.c:6862):dbsqlsend(0x7f4ae5eccf70)
15:45:52.145632 34287 (mem.c:615):tds_free_all_results()
15:45:52.145653 34287 (util.c:156):Changed query state from IDLE to QUERYING
15:45:52.145677 34287 (util.c:156):Changed query state from QUERYING to PENDING
15:45:52.145698 34287 (net.c:741):Sending packet
0000 01 01 00 28 00 00 00 00-73 65 6c 65 63 74 20 2a |...(.... select *|
0010 20 66 72 6f 6d 20 77 65-62 5f 61 70 70 2e 41 70 | from we b_app.Ap|
0020 69 53 65 73 73 69 6f 6e- |iSession|

15:45:52.146241 34287 (dblib.c:4639):dbsqlok(0x7f4ae5eccf70)
15:45:52.146325 34287 (dblib.c:4669):dbsqlok() not done, calling tds_process_tokens()
15:45:52.146359 34287 (token.c:540):tds_process_tokens(0x7f4ae5dd7d50, 0x7ffffe5d95b8, 0x7ffffe5d95bc, 0x6914)
15:45:52.146401 34287 (util.c:156):Changed query state from PENDING to READING
15:45:52.262567 34287 (net.c:555):Received header
0000 04 00 02 00 00 00 00 00- |........|

15:45:52.262671 34287 (net.c:609):Received packet
0000 04 00 02 00 00 00 00 00-7c 73 0a 69 71 00 00 00 |........ |s.iq...|
0010 00 a0 96 00 0c 41 70 69-53 65 73 73 69 6f 6e 49 |.....Api SessionI|
0020 64 14 41 70 69 53 65 73-73 69 6f 6e 43 72 65 61 |d.ApiSes sionCrea|
0030 74 6f 72 55 49 44 14 41-64 6d 69 6e 69 73 74 72 |torUID.A dministr|
0040 61 74 6f 72 4c 6f 67 69-6e 49 64 10 4d 65 65 74 |atorLogi nId.Meet|
0050 69 6e 67 53 65 73 73 69-6f 6e 49 64 13 41 70 69 |ingSessi onId.Api|
0060 53 65 73 73 69 6f 6e 55-73 65 72 4e 6f 74 65 73 |SessionU serNotes|
0070 12 41 70 69 53 65 73 73-69 6f 6e 4d 6f 64 4e 6f |.ApiSess ionModNo|
0080 74 65 73 13 41 70 69 53-65 73 73 69 6f 6e 49 73 |tes.ApiS essionIs|
0090 44 65 6c 65 74 65 64 12-41 70 69 53 65 73 73 69 |Deleted. ApiSessi|
00a0 6f 6e 52 65 6d 6f 74 65-49 64 a1 60 00 2b 00 00 |onRemote Id.`.+..|
00b0 00 6d 08 23 00 00 00 e1-40 00 00 00 2b 00 00 00 |.m.#.... @...+...|
00c0 6d 08 2b 00 00 00 6d 08-14 00 00 00 22 00 fc 00 |m.+...m. ...."...|
00d0 00 12 00 77 65 62 5f 61-70 70 2e 41 70 69 53 65 |...web_a pp.ApiSe|
00e0 73 73 69 6f 6e 14 00 00-00 22 00 fc 00 00 12 00 |ssion... ."......|
00f0 77 65 62 5f 61 70 70 2e-41 70 69 53 65 73 73 69 |web_app. ApiSessi|
0100 6f 6e 10 00 00 00 32 2b-00 00 00 6d 08 ae 08 00 |on....2+ ...m....|
0110 00 00 00 00 00 00 00 00-d1 08 00 00 00 00 00 00 |........ ........|
0120 f0 3f 2a 00 00 00 62 00-72 00 75 00 63 00 65 00 |.?...b. r.u.c.e.|
0130 73 00 40 00 65 00 6c 00-6c 00 75 00 6d 00 69 00 |[email protected]. l.u.m.i.|
0140 6e 00 61 00 74 00 65 00-2e 00 63 00 6f 00 6d 00 |n.a.t.e. ..c.o.m.|
0150 08 00 00 00 00 28 cd 02-41 08 00 00 00 00 20 de |.....(.. A..... .|
0160 fd 40 10 5a 04 00 00 00-00 00 00 00 00 00 00 eb |[email protected].... ........|
0170 b0 4c 00 00 00 00 00 00-4c b0 eb 02 00 00 00 20 |.L...... L...... |
0180 00 10 5b 04 00 00 00 00-00 00 00 00 00 00 f2 b0 |..[..... ........|
0190 4c 00 00 00 00 00 00 4c-b0 f2 02 00 00 00 20 00 |L......L ...... .|
01a0 01 08 00 00 00 00 00 00-f0 3f d1 08 00 00 00 00 |........ .?......|
01b0 00 00 00 40 2a 00 00 00-62 00 72 00 75 00 63 00 |...@
... b.r.u.c.|
01c0 65 00 73 00 40 00 65 00-6c 00 6c 00 75 00 6d 00 |[email protected]. l.l.u.m.|
01d0 69 00 6e 00 61 00 74 00-65 00 2e 00 63 00 6f 00 |i.n.a.t. e...c.o.|
01e0 6d 00 08 00 00 00 00 28-cd 02 41 08 00 00 00 00 |m......( ..A.....|
01f0 30 de fd 40 10 5c 04 00-00 00 00 00 00 00 00 00 |0..@... ........|

15:45:52.262963 34287 (token.c:555):processing result tokens. marker is 7c(PROCID)
15:45:52.262978 34287 (token.c:122):tds_process_default_tokens() marker is 7c(PROCID)
15:45:52.262990 34287 (token.c:555):processing result tokens. marker is a0(COLNAME)
15:45:52.263012 34287 (mem.c:615):tds_free_all_results()
15:45:52.263053 34287 (token.c:555):processing result tokens. marker is a1(COLFMT)
15:45:52.263069 34287 (token.c:1025):processing result. type = 109(float-null), varint_size 1
15:45:52.263082 34287 (token.c:1025):processing result. type = 35(text), varint_size 1
15:45:52.263148 34287 (token.c:3420):adjust_character_column_size:
Server charset: UTF-16LE
Server column_size: 64
Client charset: UTF-8
Client column_size: 128
15:45:52.263164 34287 (token.c:1025):processing result. type = 0(), varint_size 1
15:45:52.263176 34287 (token.c:1025):processing result. type = 0(), varint_size 1
15:45:52.263187 34287 (token.c:1025):processing result. type = 0(), varint_size 1
15:45:52.263198 34287 (token.c:1025):processing result. type = 0(), varint_size 1
15:45:52.263208 34287 (token.c:1025):processing result. type = 98(variant), varint_size 1
15:45:52.263219 34287 (token.c:1025):processing result. type = 65(), varint_size 1
15:45:52.263230 34287 (token.c:1053):NOTE:tds_process_col_fmt: draining 48 bytes
15:45:52.263242 34287 (util.c:156):Changed query state from READING to PENDING
15:45:52.263255 34287 (dblib.c:4700):dbsqlok() found result token
15:45:52.263267 34287 (dblib.c:1668):dbresults(0x7f4ae5eccf70)
15:45:52.263278 34287 (dblib.c:1674):dbresults: dbresults_state is 1 (_DB_RES_RESULTSET_EMPTY)
15:45:52.263288 34287 (token.c:540):tds_process_tokens(0x7f4ae5dd7d50, 0x7ffffe5d95a8, 0x7ffffe5d95ac, 0x6914)
15:45:52.263299 34287 (util.c:156):Changed query state from PENDING to READING
15:45:52.263309 34287 (token.c:555):processing result tokens. marker is ae(CONTROL)
15:45:52.263319 34287 (token.c:122):tds_process_default_tokens() marker is ae(CONTROL)
15:45:52.263330 34287 (token.c:237):Eating CONTROL token
15:45:52.263340 34287 (token.c:555):processing result tokens. marker is d1(ROW)
15:45:52.263351 34287 (token.c:666):tds_process_tokens::SET_RETURN stopping on current token
15:45:52.263361 34287 (util.c:156):Changed query state from READING to PENDING
15:45:52.263371 34287 (dblib.c:1695):dbresults() tds_process_tokens returned 1 (TDS_SUCCEED),
result_type TDS_ROW_RESULT
15:45:52.263382 34287 (dblib.c:1657):dbresults returning 1 (SUCCEED)
15:45:52.263392 34287 (dblib.c:2018):dbnextrow(0x7f4ae5eccf70)
15:45:52.263402 34287 (dblib.c:2031):dbnextrow() dbresults_state = 2 (_DB_RES_RESULTSET_ROWS)
15:45:52.263412 34287 (token.c:540):tds_process_tokens(0x7f4ae5dd7d50, 0x7ffffe5d95bc, (nil), 0x1508)
15:45:52.263426 34287 (util.c:156):Changed query state from PENDING to READING
15:45:52.263435 34287 (token.c:555):processing result tokens. marker is d1(ROW)
15:45:52.263446 34287 (token.c:2304):tds_process_row(): reading column 0
15:45:52.263456 34287 (token.c:2049):tds_get_data: type 109, varint size 1
15:45:52.263466 34287 (token.c:2110):tds_get_data(): wire column size is 8
15:45:52.263476 34287 (token.c:2304):tds_process_row(): reading column 1
15:45:52.263486 34287 (token.c:2049):tds_get_data: type 35, varint size 1
15:45:52.263510 34287 (token.c:2110):tds_get_data(): wire column size is 42
15:45:52.263528 34287 (token.c:2304):tds_process_row(): reading column 2
15:45:52.263539 34287 (token.c:2049):tds_get_data: type 0, varint size 1
15:45:52.263549 34287 (token.c:2110):tds_get_data(): wire column size is -1
15:45:52.263559 34287 (token.c:2304):tds_process_row(): reading column 3
15:45:52.263568 34287 (token.c:2049):tds_get_data: type 0, varint size 1
15:45:52.263577 34287 (token.c:2110):tds_get_data(): wire column size is 109
15:45:52.263587 34287 (token.c:2304):tds_process_row(): reading column 4
15:45:52.263597 34287 (token.c:2049):tds_get_data: type 0, varint size 1
15:45:52.263606 34287 (token.c:2110):tds_get_data(): wire column size is 117
15:45:52.265020 34287 (net.c:555):Received header
0000 04 00 02 00 00 00 00 00- |........|

15:45:52.265047 34287 (net.c:609):Received packet
0000 04 00 02 00 00 00 00 00-00 fb b0 4c 00 00 00 00 |........ ...L....|
0010 00 00 4c b0 fb 02 00 00-00 20 00 10 5d 04 00 00 |..L..... . ..]...|
0020 00 00 00 00 00 00 00 00-02 b1 4c 00 00 00 00 00 |........ ..L.....|
0030 00 4c b1 02 02 00 00 00-20 00 00 08 00 00 00 00 |.L...... .......|
0040 00 00 00 40 d1 08 00 00-00 00 00 00 08 40 2a 00 |...@.... .....@.|
0050 00 00 62 00 72 00 75 00-63 00 65 00 73 00 40 00 |..b.r.u. c.e.s.@.|
0060 65 00 6c 00 6c 00 75 00-6d 00 69 00 6e 00 61 00 |e.l.l.u. m.i.n.a.|
0070 74 00 65 00 2e 00 63 00-6f 00 6d 00 08 00 00 00 |t.e...c. o.m.....|
0080 00 28 cd 02 41 08 00 00-00 00 40 de fd 40 10 5e |.(..A... ..@..@.^|
0090 04 00 00 00 00 00 00 00-00 00 00 0b b1 4c 00 00 |........ .....L..|
00a0 00 00 00 00 4c b1 0b 02-00 00 00 20 00 10 5f 04 |....L... ... ..
.|
00b0 00 00 00 00 00 00 00 00-00 00 12 b1 4c 00 00 00 |........ ....L...|
00c0 00 00 00 4c b1 12 02 00-00 00 20 00 00 08 00 00 |...L.... .. .....|
00d0 00 00 00 00 08 40 d1 08-00 00 00 00 00 00 10 40 |.....@.. .......@|
00e0 2a 00 00 00 62 00 72 00-75 00 63 00 65 00 73 00 |_...b.r. u.c.e.s.|
00f0 40 00 65 00 6c 00 6c 00-75 00 6d 00 69 00 6e 00 |@.e.l.l. u.m.i.n.|
0100 61 00 74 00 65 00 2e 00-63 00 6f 00 6d 00 08 00 |a.t.e... c.o.m...|
0110 00 00 00 28 cd 02 41 08-00 00 00 00 40 ab fe 40 |...(..A. ....@..@|
0120 10 80 01 23 00 00 00 00-00 00 00 00 00 1b b1 4c |...#.... .......L|
0130 00 00 00 00 00 00 4c b1-1b 02 00 00 00 20 00 10 |......L. ..... ..|
0140 81 01 23 00 00 00 00 00-00 00 00 00 23 b1 4c 00 |..#..... ....#.L.|
0150 00 00 00 00 00 4c b1 23-02 00 00 00 20 00 00 08 |.....L.# .... ...|
0160 00 00 00 00 00 00 10 40-d1 08 00 00 00 00 00 00 |.......@ ........|
0170 24 40 12 00 00 00 75 00-69 00 67 00 63 00 61 00 |[email protected]. i.g.c.a.|
0180 64 00 6d 00 69 00 6e 00-08 00 00 00 00 68 14 03 |d.m.i.n. .....h..|
0190 41 08 00 00 00 00 18 24-00 41 10 82 01 23 00 00 |A......$ .A...#..|
01a0 00 00 00 00 00 00 00 2b-b1 4c 00 00 00 00 00 00 |.......+ .L......|
01b0 4c b1 2b 02 00 00 00 20-00 10 83 01 23 00 00 00 |L.+.... ....#...|
01c0 00 00 00 00 00 00 32 b1-4c 00 00 00 00 00 00 4c |......2. L......L|
01d0 b1 32 02 00 00 00 20 00-00 08 00 00 00 00 00 00 |.2.... . ........|
01e0 24 40 d1 08 00 00 00 00-00 00 26 40 12 00 00 00 |$@...... ..&@....|
01f0 75 00 69 00 67 00 63 00-61 00 64 00 6d 00 69 00 |u.i.g.c. a.d.m.i.|

15:45:52.265173 34287 (token.c:2304):tds_process_row(): reading column 5
15:45:52.265180 34287 (token.c:2049):tds_get_data: type 0, varint size 1
15:45:52.265190 34287 (token.c:2110):tds_get_data(): wire column size is -1
15:45:52.265200 34287 (token.c:2304):tds_process_row(): reading column 6
15:45:52.265210 34287 (token.c:2049):tds_get_data: type 98, varint size 1
15:45:52.265220 34287 (token.c:2110):tds_get_data(): wire column size is 8
15:45:52.265231 34287 (token.c:2304):tds_process_row(): reading column 7
15:45:52.265241 34287 (token.c:2049):tds_get_data: type 65, varint size 1
15:45:52.265250 34287 (token.c:2110):tds_get_data(): wire column size is 209
15:45:52.265258 34287 (util.c:156):Changed query state from READING to PENDING
15:45:52.265268 34287 (buffering.h:306):buffer_transfer_bound_data(0x7f4ae5eccf80 4040 -1 0x7f4ae5eccf70 0)
15:45:52.265286 34287 (dblib.c:2100):leaving dbnextrow() returning REG_ROW/MORE_ROWS
15:45:52.265292 34287 (dblib.c:1813):dbnumcols(0x7f4ae5eccf70)
15:45:52.265305 34287 (dblib.c:2831):dbcoltype(0x7f4ae5eccf70, 1)
15:45:52.265317 34287 (dblib.c:3133):dbdatlen(0x7f4ae5eccf70, 1)
15:45:52.265322 34287 (dblib.c:3142):dbdatlen() type = 109, len= 8
15:45:52.265328 34287 (dblib.c:3162):dbdata(0x7f4ae5eccf70, 1)
15:45:52.265333 34287 (dblib.c:2812):dbwillconvert(SYBFLT8, SYBCHAR)
15:45:52.265340 34287 (convert.c:2788):tds_willconvert(62, 47)
15:45:52.265348 34287 (convert.c:2792):tds_willconvert(62, 47) returns yes
15:45:52.265356 34287 (dblib.c:2217):dbconvert(0x7f4ae5eccf70, SYBFLT8, 0x7f4ae5ef1020, 8, SYBCHAR, 0x7f4ae5f076a0, -1)
15:45:52.265361 34287 (dblib.c:2349):dbconvert() calling tds_convert
15:45:52.265383 34287 (dblib.c:2352):dbconvert() called tds_convert returned 1
15:45:52.265389 34287 (dblib.c:2455):dbconvert() outputting 1 bytes character data destlen = -1
15:45:52.265395 34287 (dblib.c:2831):dbcoltype(0x7f4ae5eccf70, 2)
15:45:52.265400 34287 (dblib.c:3133):dbdatlen(0x7f4ae5eccf70, 2)
15:45:52.265405 34287 (dblib.c:3142):dbdatlen() type = 35, len= 61
15:45:52.265409 34287 (dblib.c:3162):dbdata(0x7f4ae5eccf70, 2)
15:45:52.265414 34287 (dblib.c:2812):dbwillconvert(SYBTEXT, SYBCHAR)
15:45:52.265419 34287 (convert.c:2788):tds_willconvert(35, 47)
15:45:52.265424 34287 (convert.c:2792):tds_willconvert(35, 47) returns yes
15:45:52.265429 34287 (dblib.c:2217):dbconvert(0x7f4ae5eccf70, SYBTEXT, 0x7f4ae5ef1028, 61, SYBCHAR, 0x7f4ae5f07ab0, -1)
15:45:52.265434 34287 (dblib.c:2349):dbconvert() calling tds_convert
15:45:52.265442 34287 (dblib.c:2352):dbconvert() called tds_convert returned 61
15:45:52.265447 34287 (dblib.c:2455):dbconvert() outputting 61 bytes character data destlen = -1
15:45:52.265452 34287 (dblib.c:2831):dbcoltype(0x7f4ae5eccf70, 3)
15:45:52.265457 34287 (dblib.c:3133):dbdatlen(0x7f4ae5eccf70, 3)
15:45:52.265462 34287 (dblib.c:3142):dbdatlen() type = 0, len= 0
15:45:52.265467 34287 (dblib.c:3162):dbdata(0x7f4ae5eccf70, 3)
15:45:52.265471 34287 (dblib.c:2831):dbcoltype(0x7f4ae5eccf70, 4)
15:45:52.265476 34287 (dblib.c:3133):dbdatlen(0x7f4ae5eccf70, 4)
15:45:52.265481 34287 (dblib.c:3142):dbdatlen() type = 0, len= 0
15:45:52.265485 34287 (dblib.c:3162):dbdata(0x7f4ae5eccf70, 4)
15:45:52.265490 34287 (dblib.c:2831):dbcoltype(0x7f4ae5eccf70, 5)
15:45:52.265494 34287 (dblib.c:3133):dbdatlen(0x7f4ae5eccf70, 5)
15:45:52.265499 34287 (dblib.c:3142):dbdatlen() type = 0, len= 0
15:45:52.265504 34287 (dblib.c:3162):dbdata(0x7f4ae5eccf70, 5)
15:45:52.265509 34287 (dblib.c:2831):dbcoltype(0x7f4ae5eccf70, 6)
15:45:52.265513 34287 (dblib.c:3133):dbdatlen(0x7f4ae5eccf70, 6)
15:45:52.265518 34287 (dblib.c:3142):dbdatlen() type = 0, len= 0
15:45:52.265522 34287 (dblib.c:3162):dbdata(0x7f4ae5eccf70, 6)
15:45:52.265527 34287 (dblib.c:2831):dbcoltype(0x7f4ae5eccf70, 7)
15:45:52.265532 34287 (dblib.c:3133):dbdatlen(0x7f4ae5eccf70, 7)
15:45:52.265536 34287 (dblib.c:3142):dbdatlen() type = 98, len= 8
15:45:52.265541 34287 (dblib.c:3162):dbdata(0x7f4ae5eccf70, 7)
15:45:52.265545 34287 (dblib.c:2812):dbwillconvert(SYBVARIANT, SYBCHAR)
15:45:52.265550 34287 (convert.c:2788):tds_willconvert(98, 47)
15:45:52.265555 34287 (dblib.c:2831):dbcoltype(0x7f4ae5eccf70, 8)
15:45:52.265560 34287 (dblib.c:3133):dbdatlen(0x7f4ae5eccf70, 8)
15:45:52.265565 34287 (dblib.c:3142):dbdatlen() type = 65, len= 112
15:45:52.265569 34287 (dblib.c:3162):dbdata(0x7f4ae5eccf70, 8)
15:45:52.265574 34287 (dblib.c:2812):dbwillconvert(SYBUINT2, SYBCHAR)
15:45:52.265579 34287 (convert.c:2788):tds_willconvert(65, 47)
postgres@bitarena:$ clear
postgres@bitarena:
$ cat /tmp/freetds.log
15:45:51.071682 34287 (log.c:196):Starting log file for FreeTDS 0.91
on 2014-05-28 15:45:51 with debug flags 0xffff.
15:45:51.071736 34287 (iconv.c:330):tds_iconv_open(0x7f4ae5eccf70, UTF-8)
15:45:51.071925 34287 (iconv.c:187):local name for ISO-8859-1 is ISO-8859-1
15:45:51.071943 34287 (iconv.c:187):local name for UTF-8 is UTF-8
15:45:51.071951 34287 (iconv.c:187):local name for UCS-2LE is UCS-2LE
15:45:51.071959 34287 (iconv.c:187):local name for UCS-2BE is UCS-2BE
15:45:51.071967 34287 (iconv.c:349):setting up conversions for client charset "UTF-8"
15:45:51.071974 34287 (iconv.c:351):preparing iconv for "UTF-8" <-> "UCS-2LE" conversion
15:45:51.071992 34287 (iconv.c:391):preparing iconv for "ISO-8859-1" <-> "ISO-8859-1" conversion
15:45:51.072001 34287 (iconv.c:394):tds_iconv_open: done
15:45:51.072018 34287 (net.c:205):Connecting to 10.15.2.70 port 5000 (TDS version 4.2)
15:45:51.072229 34287 (net.c:270):tds_open_socket: connect(2) returned "Operation now in progress"
15:45:51.187342 34287 (net.c:310):tds_open_socket() succeeded
15:45:51.187427 34287 (util.c:156):Changed query state from DEAD to IDLE
15:45:51.187457 34287 (net.c:741):Sending packet
0000 02 00 02 00 00 00 00 00-62 69 74 61 72 65 6e 61 |........ bitarena|
0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0020 00 00 00 00 00 00 08 73-61 00 00 00 00 00 00 00 |.......s a.......|
0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0040 00 00 00 00 00 02 6e 6f-74 31 63 6f 6d 6d 6f 6e |......no t1common|
0050 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0060 00 00 00 00 0a 33 34 32-38 37 00 00 00 00 00 00 |.....342 87......|
0070 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0080 00 00 00 05 03 01 06 0a-09 01 00 00 00 00 02 00 |........ ........|
0090 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
00a0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
00b0 00 00 00 31 30 2e 31 35-2e 32 2e 37 30 3a 35 30 |...10.15 .2.70:50|
00c0 30 30 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |00...... ........|
00d0 00 0f 6e 6f 74 31 63 6f-6d 6d 6f 6e 00 00 00 00 |..not1co mmon....|
00e0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
00f0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0100 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0110 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0120 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0130 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0140 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0150 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0160 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0170 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0180 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0190 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
01a0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
01b0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
01c0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
01d0 00 0a 04 02 00 00 44 42-2d 4c 69 62 72 61 72 79 |......DB -Library|
01e0 0a 00 00 00 00 00 0d 11-75 73 5f 65 6e 67 6c 69 |........ us_engli|
01f0 73 68 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |sh...... ........|

15:45:51.187751 34287 (net.c:741):Sending packet
0000 02 01 00 4c 00 00 00 00-00 00 00 00 00 00 0a 00 |...L.... ........|
0010 00 00 00 00 00 00 00 00-00 00 00 00 00 75 74 66 |........ .....utf|
0020 38 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |8....... ........|
0030 00 00 00 00 00 00 00 00-00 00 00 04 01 35 31 32 |........ .....512|
0040 00 00 00 03 00 00 00 00-00 00 00 00 |........ ....|

15:45:51.187930 34287 (token.c:328):tds_process_login_tokens()
15:45:51.314519 34287 (net.c:555):Received header
0000 04 01 00 70 00 00 00 00- |...p....|

15:45:51.314647 34287 (net.c:609):Received packet
0000 04 01 00 70 00 00 00 00-e3 0f 00 01 06 6d 61 73 |...p.... .....mas|
0010 74 65 72 06 6d 61 73 74-65 72 ab 3a 00 45 16 00 |ter.mast er.:.E..|
0020 00 02 00 26 00 43 68 61-6e 67 65 64 20 64 61 74 |...&.Cha nged dat|
0030 61 62 61 73 65 20 63 6f-6e 74 65 78 74 20 74 6f |abase co ntext to|
0040 20 27 6d 61 73 74 65 72-27 2e 0a 08 76 61 73 74 | 'master '...vast|
0050 67 5f 64 62 00 00 00 ad-0d 00 01 04 02 00 00 03 |g_db.... ........|
0060 41 53 45 0f 07 00 00 fd-00 00 02 00 33 00 00 00 |ASE..... ....3...|

15:45:51.314718 34287 (token.c:337):looking for login token, got e3(ENVCHANGE)
15:45:51.314742 34287 (token.c:122):tds_process_default_tokens() marker is e3(ENVCHANGE)
15:45:51.314774 34287 (dblib.c:327):db_env_chg(0x7f4ae5eccf70, 1, master, master)
15:45:51.314792 34287 (token.c:337):looking for login token, got ab(INFO)
15:45:51.314803 34287 (token.c:122):tds_process_default_tokens() marker is ab(INFO)
15:45:51.314814 34287 (token.c:2588):tds_process_msg() reading message 5701 from server
15:45:51.314831 34287 (token.c:2661):tds_process_msg() calling client msg handler
15:45:51.314843 34287 (dbutil.c:85):_dblib_handle_info_message(0x7f4ae5dd7d70, 0x7f4ae5eccf70, 0x7ffffe5d8df0)
15:45:51.314854 34287 (dbutil.c:86):msgno 5701: "Changed database context to 'master'.
"
15:45:51.315037 34287 (token.c:2674):tds_process_msg() returning TDS_SUCCEED
15:45:51.315059 34287 (token.c:337):looking for login token, got ad(LOGINACK)
15:45:51.315071 34287 (token.c:373):server reports TDS version 4.2.0.0
15:45:51.315083 34287 (token.c:375):Product name for 0x4020000 is unknown
15:45:51.315096 34287 (token.c:337):looking for login token, got fd(DONE)
15:45:51.315106 34287 (token.c:122):tds_process_default_tokens() marker is fd(DONE)
15:45:51.315122 34287 (token.c:2339):tds_process_end: more_results = 0
was_cancelled = 0
error = 0
done_count_valid = 0
15:45:51.315135 34287 (token.c:2355):tds_process_end() state set to TDS_IDLE
15:45:51.315145 34287 (token.c:2370): rows_affected = 51
15:45:51.315156 34287 (token.c:438):tds_process_login_tokens() returning TDS_SUCCEED
15:45:51.315178 34287 (mem.c:615):tds_free_all_results()
15:45:51.315190 34287 (util.c:156):Changed query state from IDLE to QUERYING
15:45:51.315205 34287 (util.c:156):Changed query state from QUERYING to PENDING
15:45:51.315216 34287 (net.c:741):Sending packet
0000 01 01 00 1b 00 00 00 00-73 65 74 20 74 65 78 74 |........ set text|
0010 73 69 7a 65 20 36 34 35-31 32 20 |size 645 12 |

15:45:51.315386 34287 (token.c:540):tds_process_tokens(0x7f4ae5eccf70, 0x7ffffe5d8f28, 0x7ffffe5d8f2c, 0x100)
15:45:51.315413 34287 (util.c:156):Changed query state from PENDING to READING
15:45:51.426652 34287 (net.c:555):Received header
0000 04 01 00 11 00 00 00 00- |........|

15:45:51.426750 34287 (net.c:609):Received packet
0000 04 01 00 11 00 00 00 00-fd 00 00 02 00 00 00 00 |........ ........|
0010 00 - |.|

15:45:51.426776 34287 (token.c:555):processing result tokens. marker is fd(DONE)
15:45:51.426792 34287 (token.c:2339):tds_process_end: more_results = 0
was_cancelled = 0
error = 0
done_count_valid = 0
15:45:51.426804 34287 (token.c:2355):tds_process_end() state set to TDS_IDLE
15:45:51.426815 34287 (util.c:156):Changed query state from READING to IDLE
15:45:51.426826 34287 (token.c:2370): rows_affected = 0
15:45:51.426837 34287 (util.c:104):logic error: cannot change query state from IDLE to PENDING
15:45:51.426847 34287 (token.c:540):tds_process_tokens(0x7f4ae5eccf70, 0x7ffffe5d8f28, 0x7ffffe5d8f2c, 0x100)
15:45:51.426859 34287 (token.c:543):tds_process_tokens() state is COMPLETED
15:45:51.426875 34287 (dblib.c:239):dblib_add_connection(0x7f4ad67d0760, 0x7f4ae5eccf70)
15:45:51.426892 34287 (dblib.c:1398):dbuse(0x7f4ae5dd5f50, sas_db)
15:45:51.426907 34287 (dblib.c:1312):dbcmd(0x7f4ae5dd5f50, use [sas_db])
15:45:51.426927 34287 (dblib.c:1319):dbcmd() bufsz = 0
15:45:51.426936 34287 (dblib.c:1369):dbsqlexec(0x7f4ae5dd5f50)
15:45:51.426977 34287 (dblib.c:6862):dbsqlsend(0x7f4ae5dd5f50)
15:45:51.426988 34287 (mem.c:615):tds_free_all_results()
15:45:51.426996 34287 (util.c:156):Changed query state from IDLE to QUERYING
15:45:51.427005 34287 (util.c:156):Changed query state from QUERYING to PENDING
15:45:51.427013 34287 (net.c:741):Sending packet
0000 01 01 00 14 00 00 00 00-75 73 65 20 5b 73 61 73 |........ use [sas|
0010 5f 64 62 5d - |_db]|

15:45:51.427191 34287 (dblib.c:4639):dbsqlok(0x7f4ae5dd5f50)
15:45:51.427211 34287 (dblib.c:4669):dbsqlok() not done, calling tds_process_tokens()
15:45:51.427219 34287 (token.c:540):tds_process_tokens(0x7f4ae5eccf70, 0x7ffffe5d9388, 0x7ffffe5d938c, 0x6914)
15:45:51.427228 34287 (util.c:156):Changed query state from PENDING to READING
15:45:51.541554 34287 (net.c:555):Received header
0000 04 01 00 60 00 00 00 00- |...`....|

15:45:51.541627 34287 (net.c:609):Received packet
0000 04 01 00 60 00 00 00 00-e3 0f 00 01 06 73 61 73 |...`.... .....sas|
0010 5f 64 62 06 6d 61 73 74-65 72 ab 3a 00 45 16 00 |_db.mast er.:.E..|
0020 00 01 00 26 00 43 68 61-6e 67 65 64 20 64 61 74 |...&.Cha nged dat|
0030 61 62 61 73 65 20 63 6f-6e 74 65 78 74 20 74 6f |abase co ntext to|
0040 20 27 73 61 73 5f 64 62-27 2e 0a 08 76 61 73 74 | 'sas_db '...vast|
0050 67 5f 64 62 00 01 00 fd-00 00 02 00 00 00 00 00 |g_db.... ........|

15:45:51.541673 34287 (token.c:555):processing result tokens. marker is e3(ENVCHANGE)
15:45:51.541683 34287 (token.c:122):tds_process_default_tokens() marker is e3(ENVCHANGE)
15:45:51.541695 34287 (dblib.c:327):db_env_chg(0x7f4ae5eccf70, 1, master, sas_db)
15:45:51.541706 34287 (token.c:555):processing result tokens. marker is ab(INFO)
15:45:51.541714 34287 (token.c:122):tds_process_default_tokens() marker is ab(INFO)
15:45:51.541722 34287 (token.c:2588):tds_process_msg() reading message 5701 from server
15:45:51.541733 34287 (token.c:2661):tds_process_msg() calling client msg handler
15:45:51.541741 34287 (dbutil.c:85):_dblib_handle_info_message(0x7f4ae5dd7d70, 0x7f4ae5eccf70, 0x7ffffe5d91e0)
15:45:51.541750 34287 (dbutil.c:86):msgno 5701: "Changed database context to 'sas_db'.
"
15:45:51.542038 34287 (token.c:2674):tds_process_msg() returning TDS_SUCCEED
15:45:51.542067 34287 (token.c:555):processing result tokens. marker is fd(DONE)
15:45:51.542078 34287 (token.c:2339):tds_process_end: more_results = 0
was_cancelled = 0
error = 0
done_count_valid = 0
15:45:51.542087 34287 (token.c:2355):tds_process_end() state set to TDS_IDLE
15:45:51.542094 34287 (util.c:156):Changed query state from READING to IDLE
15:45:51.542102 34287 (token.c:2370): rows_affected = 0
15:45:51.542109 34287 (util.c:104):logic error: cannot change query state from IDLE to PENDING
15:45:51.542125 34287 (dblib.c:4707):dbsqlok() end status is SUCCEED
15:45:51.542134 34287 (dblib.c:4718):dbsqlok() end status was success
15:45:51.542144 34287 (dblib.c:1668):dbresults(0x7f4ae5dd5f50)
15:45:51.542153 34287 (dblib.c:1674):dbresults: dbresults_state is 5 (_DB_RES_SUCCEED)
15:45:51.542161 34287 (dblib.c:1657):dbresults returning 1 (SUCCEED)
15:45:51.542169 34287 (dblib.c:5854):dbcanquery(0x7f4ae5dd5f50)
15:45:51.542176 34287 (token.c:540):tds_process_tokens(0x7f4ae5eccf70, 0x7ffffe5d93ac, (nil), 0x108)
15:45:51.542222 34287 (token.c:543):tds_process_tokens() state is COMPLETED
15:45:51.542232 34287 (dblib.c:1312):dbcmd(0x7f4ae5dd5f50, select * from web_app.ApiSession)
15:45:51.542240 34287 (dblib.c:1319):dbcmd() bufsz = 13
15:45:51.542247 34287 (dblib.c:5882):dbfreebuf(0x7f4ae5dd5f50)
15:45:51.542255 34287 (dblib.c:1369):dbsqlexec(0x7f4ae5dd5f50)
15:45:51.542263 34287 (dblib.c:6862):dbsqlsend(0x7f4ae5dd5f50)
15:45:51.542272 34287 (mem.c:615):tds_free_all_results()
15:45:51.542280 34287 (util.c:156):Changed query state from IDLE to QUERYING
15:45:51.542289 34287 (util.c:156):Changed query state from QUERYING to PENDING
15:45:51.542297 34287 (net.c:741):Sending packet
0000 01 01 00 28 00 00 00 00-73 65 6c 65 63 74 20 2a |...(.... select *|
0010 20 66 72 6f 6d 20 77 65-62 5f 61 70 70 2e 41 70 | from we b_app.Ap|
0020 69 53 65 73 73 69 6f 6e- |iSession|

15:45:51.542470 34287 (dblib.c:4639):dbsqlok(0x7f4ae5dd5f50)
15:45:51.542490 34287 (dblib.c:4669):dbsqlok() not done, calling tds_process_tokens()
15:45:51.542498 34287 (token.c:540):tds_process_tokens(0x7f4ae5eccf70, 0x7ffffe5d93e8, 0x7ffffe5d93ec, 0x6914)
15:45:51.542507 34287 (util.c:156):Changed query state from PENDING to READING
15:45:51.656744 34287 (net.c:555):Received header
0000 04 00 02 00 00 00 00 00- |........|

15:45:51.656815 34287 (net.c:609):Received packet
0000 04 00 02 00 00 00 00 00-7c 73 0a 69 71 00 00 00 |........ |s.iq...|
0010 00 a0 96 00 0c 41 70 69-53 65 73 73 69 6f 6e 49 |.....Api SessionI|
0020 64 14 41 70 69 53 65 73-73 69 6f 6e 43 72 65 61 |d.ApiSes sionCrea|
0030 74 6f 72 55 49 44 14 41-64 6d 69 6e 69 73 74 72 |torUID.A dministr|
0040 61 74 6f 72 4c 6f 67 69-6e 49 64 10 4d 65 65 74 |atorLogi nId.Meet|
0050 69 6e 67 53 65 73 73 69-6f 6e 49 64 13 41 70 69 |ingSessi onId.Api|
0060 53 65 73 73 69 6f 6e 55-73 65 72 4e 6f 74 65 73 |SessionU serNotes|
0070 12 41 70 69 53 65 73 73-69 6f 6e 4d 6f 64 4e 6f |.ApiSess ionModNo|
0080 74 65 73 13 41 70 69 53-65 73 73 69 6f 6e 49 73 |tes.ApiS essionIs|
0090 44 65 6c 65 74 65 64 12-41 70 69 53 65 73 73 69 |Deleted. ApiSessi|
00a0 6f 6e 52 65 6d 6f 74 65-49 64 a1 60 00 2b 00 00 |onRemote Id.`.+..|
00b0 00 6d 08 23 00 00 00 e1-40 00 00 00 2b 00 00 00 |.m.#.... @...+...|
00c0 6d 08 2b 00 00 00 6d 08-14 00 00 00 22 00 fc 00 |m.+...m. ...."...|
00d0 00 12 00 77 65 62 5f 61-70 70 2e 41 70 69 53 65 |...web_a pp.ApiSe|
00e0 73 73 69 6f 6e 14 00 00-00 22 00 fc 00 00 12 00 |ssion... ."......|
00f0 77 65 62 5f 61 70 70 2e-41 70 69 53 65 73 73 69 |web_app. ApiSessi|
0100 6f 6e 10 00 00 00 32 2b-00 00 00 6d 08 ae 08 00 |on....2+ ...m....|
0110 00 00 00 00 00 00 00 00-d1 08 00 00 00 00 00 00 |........ ........|
0120 f0 3f 2a 00 00 00 62 00-72 00 75 00 63 00 65 00 |.?...b. r.u.c.e.|
0130 73 00 40 00 65 00 6c 00-6c 00 75 00 6d 00 69 00 |[email protected]. l.u.m.i.|
0140 6e 00 61 00 74 00 65 00-2e 00 63 00 6f 00 6d 00 |n.a.t.e. ..c.o.m.|
0150 08 00 00 00 00 28 cd 02-41 08 00 00 00 00 20 de |.....(.. A..... .|
0160 fd 40 10 5a 04 00 00 00-00 00 00 00 00 00 00 eb |[email protected].... ........|
0170 b0 4c 00 00 00 00 00 00-4c b0 eb 02 00 00 00 20 |.L...... L...... |
0180 00 10 5b 04 00 00 00 00-00 00 00 00 00 00 f2 b0 |..[..... ........|
0190 4c 00 00 00 00 00 00 4c-b0 f2 02 00 00 00 20 00 |L......L ...... .|
01a0 01 08 00 00 00 00 00 00-f0 3f d1 08 00 00 00 00 |........ .?......|
01b0 00 00 00 40 2a 00 00 00-62 00 72 00 75 00 63 00 |...@
... b.r.u.c.|
01c0 65 00 73 00 40 00 65 00-6c 00 6c 00 75 00 6d 00 |[email protected]. l.l.u.m.|
01d0 69 00 6e 00 61 00 74 00-65 00 2e 00 63 00 6f 00 |i.n.a.t. e...c.o.|
01e0 6d 00 08 00 00 00 00 28-cd 02 41 08 00 00 00 00 |m......( ..A.....|
01f0 30 de fd 40 10 5c 04 00-00 00 00 00 00 00 00 00 |0..@... ........|

15:45:51.656965 34287 (token.c:555):processing result tokens. marker is 7c(PROCID)
15:45:51.656973 34287 (token.c:122):tds_process_default_tokens() marker is 7c(PROCID)
15:45:51.656980 34287 (token.c:555):processing result tokens. marker is a0(COLNAME)
15:45:51.656993 34287 (mem.c:615):tds_free_all_results()
15:45:51.657024 34287 (token.c:555):processing result tokens. marker is a1(COLFMT)
15:45:51.657034 34287 (token.c:1025):processing result. type = 109(float-null), varint_size 1
15:45:51.657042 34287 (token.c:1025):processing result. type = 35(text), varint_size 1
15:45:51.657258 34287 (token.c:3420):adjust_character_column_size:
Server charset: UTF-16LE
Server column_size: 64
Client charset: UTF-8
Client column_size: 128
15:45:51.657274 34287 (token.c:1025):processing result. type = 0(), varint_size 1
15:45:51.657282 34287 (token.c:1025):processing result. type = 0(), varint_size 1
15:45:51.657289 34287 (token.c:1025):processing result. type = 0(), varint_size 1
15:45:51.657296 34287 (token.c:1025):processing result. type = 0(), varint_size 1
15:45:51.657302 34287 (token.c:1025):processing result. type = 98(variant), varint_size 1
15:45:51.657325 34287 (token.c:1025):processing result. type = 65(), varint_size 1
15:45:51.657333 34287 (token.c:1053):NOTE:tds_process_col_fmt: draining 48 bytes
15:45:51.657341 34287 (util.c:156):Changed query state from READING to PENDING
15:45:51.657350 34287 (dblib.c:4700):dbsqlok() found result token
15:45:51.657357 34287 (dblib.c:1668):dbresults(0x7f4ae5dd5f50)
15:45:51.657364 34287 (dblib.c:1674):dbresults: dbresults_state is 1 (_DB_RES_RESULTSET_EMPTY)
15:45:51.657371 34287 (token.c:540):tds_process_tokens(0x7f4ae5eccf70, 0x7ffffe5d93d8, 0x7ffffe5d93dc, 0x6914)
15:45:51.657378 34287 (util.c:156):Changed query state from PENDING to READING
15:45:51.657384 34287 (token.c:555):processing result tokens. marker is ae(CONTROL)
15:45:51.657391 34287 (token.c:122):tds_process_default_tokens() marker is ae(CONTROL)
15:45:51.657397 34287 (token.c:237):Eating CONTROL token
15:45:51.657404 34287 (token.c:555):processing result tokens. marker is d1(ROW)
15:45:51.657411 34287 (token.c:666):tds_process_tokens::SET_RETURN stopping on current token
15:45:51.657417 34287 (util.c:156):Changed query state from READING to PENDING
15:45:51.657423 34287 (dblib.c:1695):dbresults() tds_process_tokens returned 1 (TDS_SUCCEED),
result_type TDS_ROW_RESULT
15:45:51.657430 34287 (dblib.c:1657):dbresults returning 1 (SUCCEED)
15:45:51.657441 34287 (dblib.c:2018):dbnextrow(0x7f4ae5dd5f50)
15:45:51.657448 34287 (dblib.c:2031):dbnextrow() dbresults_state = 2 (_DB_RES_RESULTSET_ROWS)
15:45:51.657455 34287 (token.c:540):tds_process_tokens(0x7f4ae5eccf70, 0x7ffffe5d93ec, (nil), 0x1508)
15:45:51.657464 34287 (util.c:156):Changed query state from PENDING to READING
15:45:51.657470 34287 (token.c:555):processing result tokens. marker is d1(ROW)
15:45:51.657477 34287 (token.c:2304):tds_process_row(): reading column 0
15:45:51.657483 34287 (token.c:2049):tds_get_data: type 109, varint size 1
15:45:51.657490 34287 (token.c:2110):tds_get_data(): wire column size is 8
15:45:51.657496 34287 (token.c:2304):tds_process_row(): reading column 1
15:45:51.657502 34287 (token.c:2049):tds_get_data: type 35, varint size 1
15:45:51.657508 34287 (token.c:2110):tds_get_data(): wire column size is 42
15:45:51.657522 34287 (token.c:2304):tds_process_row(): reading column 2
15:45:51.657529 34287 (token.c:2049):tds_get_data: type 0, varint size 1
15:45:51.657535 34287 (token.c:2110):tds_get_data(): wire column size is -1
15:45:51.657541 34287 (token.c:2304):tds_process_row(): reading column 3
15:45:51.657547 34287 (token.c:2049):tds_get_data: type 0, varint size 1
15:45:51.657553 34287 (token.c:2110):tds_get_data(): wire column size is 109
15:45:51.657560 34287 (token.c:2304):tds_process_row(): reading column 4
15:45:51.657566 34287 (token.c:2049):tds_get_data: type 0, varint size 1
15:45:51.657572 34287 (token.c:2110):tds_get_data(): wire column size is 117
15:45:51.660163 34287 (net.c:555):Received header
0000 04 00 02 00 00 00 00 00- |........|

15:45:51.660215 34287 (net.c:609):Received packet
0000 04 00 02 00 00 00 00 00-00 fb b0 4c 00 00 00 00 |........ ...L....|
0010 00 00 4c b0 fb 02 00 00-00 20 00 10 5d 04 00 00 |..L..... . ..]...|
0020 00 00 00 00 00 00 00 00-02 b1 4c 00 00 00 00 00 |........ ..L.....|
0030 00 4c b1 02 02 00 00 00-20 00 00 08 00 00 00 00 |.L...... .......|
0040 00 00 00 40 d1 08 00 00-00 00 00 00 08 40 2a 00 |...@.... .....@.|
0050 00 00 62 00 72 00 75 00-63 00 65 00 73 00 40 00 |..b.r.u. c.e.s.@.|
0060 65 00 6c 00 6c 00 75 00-6d 00 69 00 6e 00 61 00 |e.l.l.u. m.i.n.a.|
0070 74 00 65 00 2e 00 63 00-6f 00 6d 00 08 00 00 00 |t.e...c. o.m.....|
0080 00 28 cd 02 41 08 00 00-00 00 40 de fd 40 10 5e |.(..A... ..@..@.^|
0090 04 00 00 00 00 00 00 00-00 00 00 0b b1 4c 00 00 |........ .....L..|
00a0 00 00 00 00 4c b1 0b 02-00 00 00 20 00 10 5f 04 |....L... ... ..
.|
00b0 00 00 00 00 00 00 00 00-00 00 12 b1 4c 00 00 00 |........ ....L...|
00c0 00 00 00 4c b1 12 02 00-00 00 20 00 00 08 00 00 |...L.... .. .....|
00d0 00 00 00 00 08 40 d1 08-00 00 00 00 00 00 10 40 |.....@.. .......@|
00e0 2a 00 00 00 62 00 72 00-75 00 63 00 65 00 73 00 |_...b.r. u.c.e.s.|
00f0 40 00 65 00 6c 00 6c 00-75 00 6d 00 69 00 6e 00 |@.e.l.l. u.m.i.n.|
0100 61 00 74 00 65 00 2e 00-63 00 6f 00 6d 00 08 00 |a.t.e... c.o.m...|
0110 00 00 00 28 cd 02 41 08-00 00 00 00 40 ab fe 40 |...(..A. ....@..@|
0120 10 80 01 23 00 00 00 00-00 00 00 00 00 1b b1 4c |...#.... .......L|
0130 00 00 00 00 00 00 4c b1-1b 02 00 00 00 20 00 10 |......L. ..... ..|
0140 81 01 23 00 00 00 00 00-00 00 00 00 23 b1 4c 00 |..#..... ....#.L.|
0150 00 00 00 00 00 4c b1 23-02 00 00 00 20 00 00 08 |.....L.# .... ...|
0160 00 00 00 00 00 00 10 40-d1 08 00 00 00 00 00 00 |.......@ ........|
0170 24 40 12 00 00 00 75 00-69 00 67 00 63 00 61 00 |[email protected]. i.g.c.a.|
0180 64 00 6d 00 69 00 6e 00-08 00 00 00 00 68 14 03 |d.m.i.n. .....h..|
0190 41 08 00 00 00 00 18 24-00 41 10 82 01 23 00 00 |A......$ .A...#..|
01a0 00 00 00 00 00 00 00 2b-b1 4c 00 00 00 00 00 00 |.......+ .L......|
01b0 4c b1 2b 02 00 00 00 20-00 10 83 01 23 00 00 00 |L.+.... ....#...|
01c0 00 00 00 00 00 00 32 b1-4c 00 00 00 00 00 00 4c |......2. L......L|
01d0 b1 32 02 00 00 00 20 00-00 08 00 00 00 00 00 00 |.2.... . ........|
01e0 24 40 d1 08 00 00 00 00-00 00 26 40 12 00 00 00 |$@...... ..&@....|
01f0 75 00 69 00 67 00 63 00-61 00 64 00 6d 00 69 00 |u.i.g.c. a.d.m.i.|

15:45:51.660685 34287 (token.c:2304):tds_process_row(): reading column 5
15:45:51.660701 34287 (token.c:2049):tds_get_data: type 0, varint size 1
15:45:51.660711 34287 (token.c:2110):tds_get_data(): wire column size is -1
15:45:51.660721 34287 (token.c:2304):tds_process_row(): reading column 6
15:45:51.660731 34287 (token.c:2049):tds_get_data: type 98, varint size 1
15:45:51.660741 34287 (token.c:2110):tds_get_data(): wire column size is 8
15:45:51.660752 34287 (token.c:2304):tds_process_row(): reading column 7
15:45:51.660763 34287 (token.c:2049):tds_get_data: type 65, varint size 1
15:45:51.660772 34287 (token.c:2110):tds_get_data(): wire column size is 209
15:45:51.660782 34287 (util.c:156):Changed query state from READING to PENDING
15:45:51.660799 34287 (buffering.h:306):buffer_transfer_bound_data(0x7f4ae5dd5f60 4040 -1 0x7f4ae5dd5f50 0)
15:45:51.660814 34287 (dblib.c:2100):leaving dbnextrow() returning REG_ROW/MORE_ROWS
15:45:51.660828 34287 (dblib.c:2761):dbcount(0x7f4ae5dd5f50)
15:45:51.660839 34287 (dblib.c:1443):dbclose(0x7f4ae5dd5f50)
15:45:51.660850 34287 (dblib.c:258):dblib_del_connection(0x7f4ad67d0760, 0x7f4ae5eccf70)
15:45:51.660862 34287 (mem.c:615):tds_free_all_results()
15:45:51.661260 34287 (util.c:156):Changed query state from PENDING to DEAD
15:45:51.661390 34287 (dblib.c:305):dblib_release_tds_ctx(1)
15:45:51.661421 34287 (dblib.c:5882):dbfreebuf(0x7f4ae5dd5f50)
15:45:51.661433 34287 (dblib.c:739):dbloginfree(0x7f4ae5dd7dc0)
15:45:51.661443 34287 (dblib.c:1512):dbexit(void)
15:45:51.661456 34287 (dblib.c:305):dblib_release_tds_ctx(1)
15:45:51.661599 34287 (dblib.c:670):dbinit(void)
15:45:51.661618 34287 (dblib.c:273):dblib_get_tds_ctx(void)
15:45:51.661630 34287 (locale.c:69):Attempting to read locales.conf file
15:45:51.661658 34287 (dblib.c:4945):dberrhandle(0x7f4ad67d2800)
15:45:51.661670 34287 (dblib.c:4964):dbmsghandle(0x7f4ad67d37b0)
15:45:51.661724 34287 (dblib.c:713):dblogin(void)
15:45:51.661739 34287 (dblib.c:761):dbsetlname(0x7f4ae5eee250, sa, 2)
15:45:51.661749 34287 (dblib.c:761):dbsetlname(0x7f4ae5eee250, not1common, 3)
15:45:51.661758 34287 (dblib.c:1146):dbopen(0x7f4ae5eee250, 10.15.2.70:5000, [sybase])
15:45:51.661769 34287 (dblib.c:273):dblib_get_tds_ctx(void)
15:45:51.661785 34287 (config.c:185):Getting connection information for [10.15.2.70:5000].
15:45:51.661791 34287 (config.c:189):Attempting to read conf files.
15:45:51.661797 34287 (config.c:354):... $FREETDSCONF not set. Trying $FREETDS/etc.
15:45:51.661802 34287 (config.c:367):... $FREETDS not set. Trying $HOME.
15:45:51.661862 34287 (config.c:293):Could not open '/var/lib/postgresql/.freetds.conf' ((.freetds.conf)).
15:45:51.661876 34287 (config.c:297):Found conf file '/etc/freetds/freetds.conf' (default).
15:45:51.661882 34287 (config.c:483):Looking for section global.
15:45:51.661911 34287 (config.c:540): Found section global.
15:45:51.661918 34287 (config.c:543):Got a match.
15:45:51.661925 34287 (config.c:565): dump file = '/tmp/freetds.log'
15:45:51.661931 34287 (config.c:565): debug flags = '0xffff'
15:45:51.661937 34287 (config.c:565): timeout = '30'
15:45:51.661943 34287 (config.c:565): connect timeout = '10'
15:45:51.661949 34287 (config.c:565): text size = '64512'
15:45:51.661955 34287 (config.c:540): Found section sybase.
15:45:51.661961 34287 (config.c:540): Found section egserver70.
15:45:51.661968 34287 (config.c:554): Reached EOF
15:45:51.661973 34287 (config.c:483):Looking for section 10.15.2.70:5000.
15:45:51.661980 34287 (config.c:540): Found section global.
15:45:51.661988 34287 (config.c:540): Found section sybase.
15:45:51.661994 34287 (config.c:540): Found section egserver70.
15:45:51.662000 34287 (config.c:554): Reached EOF
15:45:51.662004 34287 (config.c:303):[10.15.2.70:5000] not found.
15:45:51.662040 34287 (config.c:354):... $FREETDSCONF not set. Trying $FREETDS/etc.
15:45:51.662049 34287 (config.c:367):... $FREETDS not set. Trying $HOME.
15:45:51.662097 34287 (config.c:293):Could not open '/var/lib/postgresql/.freetds.conf' ((.freetds.conf)).
15:45:51.662120 34287 (config.c:297):Found conf file '/etc/freetds/freetds.conf' (default).
15:45:51.662132 34287 (config.c:483):Looking for section global.
15:45:51.662155 34287 (config.c:540): Found section global.
15:45:51.662168 34287 (config.c:543):Got a match.
15:45:51.662180 34287 (config.c:565): dump file = '/tmp/freetds.log'
15:45:51.662193 34287 (config.c:565): debug flags = '0xffff'
15:45:51.662206 34287 (config.c:565): timeout = '30'
15:45:51.662218 34287 (config.c:565): connect timeout = '10'
15:45:51.662229 34287 (config.c:565): text size = '64512'
15:45:51.662240 34287 (config.c:540): Found section sybase.
15:45:51.662253 34287 (config.c:540): Found section egserver70.
15:45:51.662267 34287 (config.c:554): Reached EOF
15:45:51.662278 34287 (config.c:483):Looking for section 10.15.2.70.
15:45:51.662292 34287 (config.c:540): Found section global.
15:45:51.662307 34287 (config.c:540): Found section sybase.
15:45:51.662319 34287 (config.c:540): Found section egserver70.
15:45:51.662329 34287 (config.c:554): Reached EOF
15:45:51.662337 34287 (config.c:303):[10.15.2.70] not found.
15:45:51.662364 34287 (iconv.c:330):tds_iconv_open(0x7f4ae5dd7d50, UTF-8)
15:45:51.662393 34287 (iconv.c:349):setting up conversions for client charset "UTF-8"
15:45:51.662398 34287 (iconv.c:351):preparing iconv for "UTF-8" <-> "UCS-2LE" conversion
15:45:51.662418 34287 (iconv.c:391):preparing iconv for "ISO-8859-1" <-> "ISO-8859-1" conversion
15:45:51.662425 34287 (iconv.c:394):tds_iconv_open: done
15:45:51.662432 34287 (net.c:205):Connecting to 10.15.2.70 port 5000 (TDS version 4.2)
15:45:51.662565 34287 (net.c:270):tds_open_socket: connect(2) returned "Operation now in progress"
15:45:51.781873 34287 (net.c:310):tds_open_socket() succeeded
15:45:51.781934 34287 (util.c:156):Changed query state from DEAD to IDLE
15:45:51.781993 34287 (net.c:741):Sending packet
0000 02 00 02 00 00 00 00 00-62 69 74 61 72 65 6e 61 |........ bitarena|
0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0020 00 00 00 00 00 00 08 73-61 00 00 00 00 00 00 00 |.......s a.......|
0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0040 00 00 00 00 00 02 6e 6f-74 31 63 6f 6d 6d 6f 6e |......no t1common|
0050 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0060 00 00 00 00 0a 33 34 32-38 37 00 00 00 00 00 00 |.....342 87......|
0070 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0080 00 00 00 05 03 01 06 0a-09 01 00 00 00 00 02 00 |........ ........|
0090 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
00a0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
00b0 00 00 00 31 30 2e 31 35-2e 32 2e 37 30 3a 35 30 |...10.15 .2.70:50|
00c0 30 30 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |00...... ........|
00d0 00 0f 6e 6f 74 31 63 6f-6d 6d 6f 6e 00 00 00 00 |..not1co mmon....|
00e0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
00f0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0100 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0110 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0120 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0130 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0140 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0150 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0160 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0170 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0180 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
0190 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
01a0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
01b0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
01c0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |........ ........|
01d0 00 0a 04 02 00 00 44 42-2d 4c 69 62 72 61 72 79 |......DB -Library|
01e0 0a 00 00 00 00 00 0d 11-75 73 5f 65 6e 67 6c 69 |........ us_engli|
01f0 73 68 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |sh...... ........|

15:45:51.782248 34287 (net.c:741):Sending packet
0000 02 01 00 4c 00 00 00 00-00 00 00 00 00 00 0a 00 |...L.... ........|
0010 00 00 00 00 00 00 00 00-00 00 00 00 00 75 74 66 |........ .....utf|
0020 38 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |8....... ........|
0030 00 00 00 00 00 00 00 00-00 00 00 04 01 35 31 32 |........ .....512|
0040 00 00 00 03 00 00 00 00-00 00 00 00 |........ ....|

15:45:51.782395 34287 (token.c:328):tds_process_login_tokens()
15:45:51.912087 34287 (net.c:555):Received header
0000 04 01 00 70 00 00 00 00- |...p....|

15:45:51.912214 34287 (net.c:609):Received packet
0000 04 01 00 70 00 00 00 00-e3 0f 00 01 06 6d 61 73 |...p.... .....mas|
0010 74 65 72 06 6d 61 73 74-65 72 ab 3a 00 45 16 00 |ter.mast er.:.E..|
0020 00 02 00 26 00 43 68 61-6e 67 65 64 20 64 61 74 |...&.Cha nged dat|
0030 61 62 61 73 65 20 63 6f-6e 74 65 78 74 20 74 6f |abase co ntext to|
0040 20 27 6d 61 73 74 65 72-27 2e 0a 08 76 61 73 74 | 'master '...vast|
0050 67 5f 64 62 00 00 00 ad-0d 00 01 04 02 00 00 03 |g_db.... ........|
0060 41 53 45 0f 07 00 00 fd-00 00 02 00 5c 00 00 00 |ASE..... .......|

15:45:51.912284 34287 (token.c:337):looking for login token, got e3(ENVCHANGE)
15:45:51.912297 34287 (token.c:122):tds_process_default_tokens() marker is e3(ENVCHANGE)
15:45:51.912315 34287 (dblib.c:327):db_env_chg(0x7f4ae5dd7d50, 1, master, master)
15:45:51.912329 34287 (token.c:337):looking for login token, got ab(INFO)
15:45:51.912339 34287 (token.c:122):tds_process_default_tokens() marker is ab(INFO)
15:45:51.912351 34287 (token.c:2588):tds_process_msg() reading message 5701 from server
15:45:51.912367 34287 (token.c:2661):tds_process_msg() calling client msg handler
15:45:51.912377 34287 (dbutil.c:85):_dblib_handle_info_message(0x7f4ae5edcfd0, 0x7f4ae5dd7d50, 0x7ffffe5d9090)
15:45:51.912388 34287 (dbutil.c:86):msgno 5701: "Changed database context to 'master'.
"
15:45:51.912839 34287 (token.c:2674):tds_process_msg() returning TDS_SUCCEED
15:45:51.912869 34287 (token.c:337):looking for login token, got ad(LOGINACK)
15:45:51.912881 34287 (token.c:373):server reports TDS version 4.2.0.0
15:45:51.912892 34287 (token.c:375):Product name for 0x4020000 is unknown
15:45:51.912905 34287 (token.c:337):looking for login token, got fd(DONE)
15:45:51.912916 34287 (token.c:122):tds_process_default_tokens() marker is fd(DONE)
15:45:51.912927 34287 (token.c:2339):tds_process_end: more_results = 0
was_cancelled = 0
error = 0
done_count_valid = 0
15:45:51.912938 34287 (token.c:2355):tds_process_end() state set to TDS_IDLE
15:45:51.912948 34287 (token.c:2370): rows_affected = 92
15:45:51.912958 34287 (token.c:438):tds_process_login_tokens() returning TDS_SUCCEED
15:45:51.913001 34287 (mem.c:615):tds_free_all_results()
15:45:51.913015 34287 (util.c:156):Changed query state from IDLE to QUERYING
15:45:51.913027 34287 (util.c:156):Changed query state from QUERYING to PENDING
15:45:51.913038 34287 (net.c:741):Sending packet
0000 01 01 00 1b 00 00 00 00-73 65 74 20 74 65 78 74 |........ set text|
0010 73 69 7a 65 20 36 34 35-31 32 20 |size 645 12 |

15:45:51.913302 34287 (token.c:540):tds_process_tokens(0x7f4ae5dd7d50, 0x7ffffe5d91c8, 0x7ffffe5d91cc, 0x100)
15:45:51.913332 34287 (util.c:156):Changed query state from PENDING to READING
15:45:52.026788 34287 (net.c:555):Received header
0000 04 01 00 11 00 00 00 00- |........|

15:45:52.026862 34287 (net.c:609):Received packet
0000 04 01 00 11 00 00 00 00-fd 00 00 02 00 00 00 00 |........ ........|
0010 00 - |.|

15:45:52.026881 34287 (token.c:555):processing result tokens. marker is fd(DONE)
15:45:52.026894 34287 (token.c:2339):tds_process_end: more_results = 0
was_cancelled = 0
error = 0
done_count_valid = 0
15:45:52.026902 34287 (token.c:2355):tds_process_end() state set to TDS_IDLE
15:45:52.026910 34287 (util.c:156):Changed query state from READING to IDLE
15:45:52.026919 34287 (token.c:2370): rows_affected = 0
15:45:52.026927 34287 (util.c:104):logic error: cannot change query state from IDLE to PENDING
15:45:52.026935 34287 (token.c:540):tds_process_tokens(0x7f4ae5dd7d50, 0x7ffffe5d91c8, 0x7ffffe5d91cc, 0x100)
15:45:52.026944 34287 (token.c:543):tds_process_tokens() state is COMPLETED
15:45:52.026956 34287 (dblib.c:239):dblib_add_connection(0x7f4ad67d0760, 0x7f4ae5dd7d50)
15:45:52.027000 34287 (dblib.c:1398):dbuse(0x7f4ae5eccf70, sas_db)
15:45:52.027027 34287 (dblib.c:1312):dbcmd(0x7f4ae5eccf70, use [sas_db])
15:45:52.027041 34287 (dblib.c:1319):dbcmd() bufsz = 0
15:45:52.027052 34287 (dblib.c:1369):dbsqlexec(0x7f4ae5eccf70)
15:45:52.027063 34287 (dblib.c:6862):dbsqlsend(0x7f4ae5eccf70)
15:45:52.027074 34287 (mem.c:615):tds_free_all_results()
15:45:52.027085 34287 (util.c:156):Changed query state from IDLE to QUERYING
15:45:52.027097 34287 (util.c:156):Changed query state from QUERYING to PENDING
15:45:52.027107 34287 (net.c:741):Sending packet
0000 01 01 00 14 00 00 00 00-75 73 65 20 5b 73 61 73 |........ use [sas|
0010 5f 64 62 5d - |_db]|

15:45:52.027299 34287 (dblib.c:4639):dbsqlok(0x7f4ae5eccf70)
15:45:52.027327 34287 (dblib.c:4669):dbsqlok() not done, calling tds_process_tokens()
15:45:52.027339 34287 (token.c:540):tds_process_tokens(0x7f4ae5dd7d50, 0x7ffffe5d9628, 0x7ffffe5d962c, 0x6914)
15:45:52.027350 34287 (util.c:156):Changed query state from PENDING to READING
15:45:52.144390 34287 (net.c:555):Received header
0000 04 01 00 60 00 00 00 00- |...`....|

15:45:52.144481 34287 (net.c:609):Received packet
0000 04 01 00 60 00 00 00 00-e3 0f 00 01 06 73 61 73 |...`.... .....sas|
0010 5f 64 62 06 6d 61 73 74-65 72 ab 3a 00 45 16 00 |_db.mast er.:.E..|
0020 00 01 00 26 00 43 68 61-6e 67 65 64 20 64 61 74 |...&.Cha nged dat|
0030 61 62 61 73 65 20 63 6f-6e 74 65 78 74 20 74 6f |abase co ntext to|
0040 20 27 73 61 73 5f 64 62-27 2e 0a 08 76 61 73 74 | 'sas_db '...vast|
0050 67 5f 64 62 00 01 00 fd-00 00 02 00 00 00 00 00 |g_db.... ........|

15:45:52.144543 34287 (token.c:555):processing result tokens. marker is e3(ENVCHANGE)
15:45:52.144556 34287 (token.c:122):tds_process_default_tokens() marker is e3(ENVCHANGE)
15:45:52.144574 34287 (dblib.c:327):db_env_chg(0x7f4ae5dd7d50, 1, master, sas_db)
15:45:52.144590 34287 (token.c:555):processing result tokens. marker is ab(INFO)
15:45:52.144601 34287 (token.c:122):tds_process_default_tokens() marker is ab(INFO)
15:45:52.144612 34287 (token.c:2588):tds_process_msg() reading message 5701 from server
15:45:52.144626 34287 (token.c:2661):tds_process_msg() calling client msg handler
15:45:52.144637 34287 (dbutil.c:85):_dblib_handle_info_message(0x7f4ae5edcfd0, 0x7f4ae5dd7d50, 0x7ffffe5d9480)
15:45:52.144680 34287 (dbutil.c:86):msgno 5701: "Changed database context to 'sas_db'.
"
15:45:52.145166 34287 (token.c:2674):tds_process_msg() returning TDS_SUCCEED
15:45:52.145204 34287 (token.c:555):processing result tokens. marker is fd(DONE)
15:45:52.145228 34287 (token.c:2339):tds_process_end: more_results = 0
was_cancelled = 0
error = 0
done_count_valid = 0
15:45:52.145252 34287 (token.c:2355):tds_process_end() state set to TDS_IDLE
15:45:52.145273 34287 (util.c:156):Changed query state from READING to IDLE
15:45:52.145291 34287 (token.c:2370): rows_affected = 0
15:45:52.145309 34287 (util.c:104):logic error: cannot change query state from IDLE to PENDING
15:45:52.145321 34287 (dblib.c:4707):dbsqlok() end status is SUCCEED
15:45:52.145331 34287 (dblib.c:4718):dbsqlok() end status was success
15:45:52.145341 34287 (dblib.c:1668):dbresults(0x7f4ae5eccf70)
15:45:52.145352 34287 (dblib.c:1674):dbresults: dbresults_state is 5 (_DB_RES_SUCCEED)
15:45:52.145363 34287 (dblib.c:1657):dbresults returning 1 (SUCCEED)
15:45:52.145373 34287 (dblib.c:5854):dbcanquery(0x7f4ae5eccf70)
15:45:52.145383 34287 (token.c:540):tds_process_tokens(0x7f4ae5dd7d50, 0x7ffffe5d964c, (nil), 0x108)
15:45:52.145398 34287 (token.c:543):tds_process_tokens() state is COMPLETED
15:45:52.145516 34287 (dblib.c:1312):dbcmd(0x7f4ae5eccf70, select * from web_app.ApiSession)
15:45:52.145548 34287 (dblib.c:1319):dbcmd() bufsz = 13
15:45:52.145569 34287 (dblib.c:5882):dbfreebuf(0x7f4ae5eccf70)
15:45:52.145591 34287 (dblib.c:1369):dbsqlexec(0x7f4ae5eccf70)
15:45:52.145611 34287 (dblib.c:6862):dbsqlsend(0x7f4ae5eccf70)
15:45:52.145632 34287 (mem.c:615):tds_free_all_results()
15:45:52.145653 34287 (util.c:156):Changed query state from IDLE to QUERYING
15:45:52.145677 34287 (util.c:156):Changed query state from QUERYING to PENDING
15:45:52.145698 34287 (net.c:741):Sending packet
0000 01 01 00 28 00 00 00 00-73 65 6c 65 63 74 20 2a |...(.... select *|
0010 20 66 72 6f 6d 20 77 65-62 5f 61 70 70 2e 41 70 | from we b_app.Ap|
0020 69 53 65 73 73 69 6f 6e- |iSession|

15:45:52.146241 34287 (dblib.c:4639):dbsqlok(0x7f4ae5eccf70)
15:45:52.146325 34287 (dblib.c:4669):dbsqlok() not done, calling tds_process_tokens()
15:45:52.146359 34287 (token.c:540):tds_process_tokens(0x7f4ae5dd7d50, 0x7ffffe5d95b8, 0x7ffffe5d95bc, 0x6914)
15:45:52.146401 34287 (util.c:156):Changed query state from PENDING to READING
15:45:52.262567 34287 (net.c:555):Received header
0000 04 00 02 00 00 00 00 00- |........|

15:45:52.262671 34287 (net.c:609):Received packet
0000 04 00 02 00 00 00 00 00-7c 73 0a 69 71 00 00 00 |........ |s.iq...|
0010 00 a0 96 00 0c 41 70 69-53 65 73 73 69 6f 6e 49 |.....Api SessionI|
0020 64 14 41 70 69 53 65 73-73 69 6f 6e 43 72 65 61 |d.ApiSes sionCrea|
0030 74 6f 72 55 49 44 14 41-64 6d 69 6e 69 73 74 72 |torUID.A dministr|
0040 61 74 6f 72 4c 6f 67 69-6e 49 64 10 4d 65 65 74 |atorLogi nId.Meet|
0050 69 6e 67 53 65 73 73 69-6f 6e 49 64 13 41 70 69 |ingSessi onId.Api|
0060 53 65 73 73 69 6f 6e 55-73 65 72 4e 6f 74 65 73 |SessionU serNotes|
0070 12 41 70 69 53 65 73 73-69 6f 6e 4d 6f 64 4e 6f |.ApiSess ionModNo|
0080 74 65 73 13 41 70 69 53-65 73 73 69 6f 6e 49 73 |tes.ApiS essionIs|
0090 44 65 6c 65 74 65 64 12-41 70 69 53 65 73 73 69 |Deleted. ApiSessi|
00a0 6f 6e 52 65 6d 6f 74 65-49 64 a1 60 00 2b 00 00 |onRemote Id.`.+..|
00b0 00 6d 08 23 00 00 00 e1-40 00 00 00 2b 00 00 00 |.m.#.... @...+...|
00c0 6d 08 2b 00 00 00 6d 08-14 00 00 00 22 00 fc 00 |m.+...m. ...."...|
00d0 00 12 00 77 65 62 5f 61-70 70 2e 41 70 69 53 65 |...web_a pp.ApiSe|
00e0 73 73 69 6f 6e 14 00 00-00 22 00 fc 00 00 12 00 |ssion... ."......|
00f0 77 65 62 5f 61 70 70 2e-41 70 69 53 65 73 73 69 |web_app. ApiSessi|
0100 6f 6e 10 00 00 00 32 2b-00 00 00 6d 08 ae 08 00 |on....2+ ...m....|
0110 00 00 00 00 00 00 00 00-d1 08 00 00 00 00 00 00 |........ ........|
0120 f0 3f 2a 00 00 00 62 00-72 00 75 00 63 00 65 00 |.?...b. r.u.c.e.|
0130 73 00 40 00 65 00 6c 00-6c 00 75 00 6d 00 69 00 |[email protected]. l.u.m.i.|
0140 6e 00 61 00 74 00 65 00-2e 00 63 00 6f 00 6d 00 |n.a.t.e. ..c.o.m.|
0150 08 00 00 00 00 28 cd 02-41 08 00 00 00 00 20 de |.....(.. A..... .|
0160 fd 40 10 5a 04 00 00 00-00 00 00 00 00 00 00 eb |[email protected].... ........|
0170 b0 4c 00 00 00 00 00 00-4c b0 eb 02 00 00 00 20 |.L...... L...... |
0180 00 10 5b 04 00 00 00 00-00 00 00 00 00 00 f2 b0 |..[..... ........|
0190 4c 00 00 00 00 00 00 4c-b0 f2 02 00 00 00 20 00 |L......L ...... .|
01a0 01 08 00 00 00 00 00 00-f0 3f d1 08 00 00 00 00 |........ .?......|
01b0 00 00 00 40 2a 00 00 00-62 00 72 00 75 00 63 00 |...@
... b.r.u.c.|
01c0 65 00 73 00 40 00 65 00-6c 00 6c 00 75 00 6d 00 |[email protected]. l.l.u.m.|
01d0 69 00 6e 00 61 00 74 00-65 00 2e 00 63 00 6f 00 |i.n.a.t. e...c.o.|
01e0 6d 00 08 00 00 00 00 28-cd 02 41 08 00 00 00 00 |m......( ..A.....|
01f0 30 de fd 40 10 5c 04 00-00 00 00 00 00 00 00 00 |0..@... ........|

15:45:52.262963 34287 (token.c:555):processing result tokens. marker is 7c(PROCID)
15:45:52.262978 34287 (token.c:122):tds_process_default_tokens() marker is 7c(PROCID)
15:45:52.262990 34287 (token.c:555):processing result tokens. marker is a0(COLNAME)
15:45:52.263012 34287 (mem.c:615):tds_free_all_results()
15:45:52.263053 34287 (token.c:555):processing result tokens. marker is a1(COLFMT)
15:45:52.263069 34287 (token.c:1025):processing result. type = 109(float-null), varint_size 1
15:45:52.263082 34287 (token.c:1025):processing result. type = 35(text), varint_size 1
15:45:52.263148 34287 (token.c:3420):adjust_character_column_size:
Server charset: UTF-16LE
Server column_size: 64
Client charset: UTF-8
Client column_size: 128
15:45:52.263164 34287 (token.c:1025):processing result. type = 0(), varint_size 1
15:45:52.263176 34287 (token.c:1025):processing result. type = 0(), varint_size 1
15:45:52.263187 34287 (token.c:1025):processing result. type = 0(), varint_size 1
15:45:52.263198 34287 (token.c:1025):processing result. type = 0(), varint_size 1
15:45:52.263208 34287 (token.c:1025):processing result. type = 98(variant), varint_size 1
15:45:52.263219 34287 (token.c:1025):processing result. type = 65(), varint_size 1
15:45:52.263230 34287 (token.c:1053):NOTE:tds_process_col_fmt: draining 48 bytes
15:45:52.263242 34287 (util.c:156):Changed query state from READING to PENDING
15:45:52.263255 34287 (dblib.c:4700):dbsqlok() found result token
15:45:52.263267 34287 (dblib.c:1668):dbresults(0x7f4ae5eccf70)
15:45:52.263278 34287 (dblib.c:1674):dbresults: dbresults_state is 1 (_DB_RES_RESULTSET_EMPTY)
15:45:52.263288 34287 (token.c:540):tds_process_tokens(0x7f4ae5dd7d50, 0x7ffffe5d95a8, 0x7ffffe5d95ac, 0x6914)
15:45:52.263299 34287 (util.c:156):Changed query state from PENDING to READING
15:45:52.263309 34287 (token.c:555):processing result tokens. marker is ae(CONTROL)
15:45:52.263319 34287 (token.c:122):tds_process_default_tokens() marker is ae(CONTROL)
15:45:52.263330 34287 (token.c:237):Eating CONTROL token
15:45:52.263340 34287 (token.c:555):processing result tokens. marker is d1(ROW)
15:45:52.263351 34287 (token.c:666):tds_process_tokens::SET_RETURN stopping on current token
15:45:52.263361 34287 (util.c:156):Changed query state from READING to PENDING
15:45:52.263371 34287 (dblib.c:1695):dbresults() tds_process_tokens returned 1 (TDS_SUCCEED),
result_type TDS_ROW_RESULT
15:45:52.263382 34287 (dblib.c:1657):dbresults returning 1 (SUCCEED)
15:45:52.263392 34287 (dblib.c:2018):dbnextrow(0x7f4ae5eccf70)
15:45:52.263402 34287 (dblib.c:2031):dbnextrow() dbresults_state = 2 (_DB_RES_RESULTSET_ROWS)
15:45:52.263412 34287 (token.c:540):tds_process_tokens(0x7f4ae5dd7d50, 0x7ffffe5d95bc, (nil), 0x1508)
15:45:52.263426 34287 (util.c:156):Changed query state from PENDING to READING
15:45:52.263435 34287 (token.c:555):processing result tokens. marker is d1(ROW)
15:45:52.263446 34287 (token.c:2304):tds_process_row(): reading column 0
15:45:52.263456 34287 (token.c:2049):tds_get_data: type 109, varint size 1
15:45:52.263466 34287 (token.c:2110):tds_get_data(): wire column size is 8
15:45:52.263476 34287 (token.c:2304):tds_process_row(): reading column 1
15:45:52.263486 34287 (token.c:2049):tds_get_data: type 35, varint size 1
15:45:52.263510 34287 (token.c:2110):tds_get_data(): wire column size is 42
15:45:52.263528 34287 (token.c:2304):tds_process_row(): reading column 2
15:45:52.263539 34287 (token.c:2049):tds_get_data: type 0, varint size 1
15:45:52.263549 34287 (token.c:2110):tds_get_data(): wire column size is -1
15:45:52.263559 34287 (token.c:2304):tds_process_row(): reading column 3
15:45:52.263568 34287 (token.c:2049):tds_get_data: type 0, varint size 1
15:45:52.263577 34287 (token.c:2110):tds_get_data(): wire column size is 109
15:45:52.263587 34287 (token.c:2304):tds_process_row(): reading column 4
15:45:52.263597 34287 (token.c:2049):tds_get_data: type 0, varint size 1
15:45:52.263606 34287 (token.c:2110):tds_get_data(): wire column size is 117
15:45:52.265020 34287 (net.c:555):Received header
0000 04 00 02 00 00 00 00 00- |........|

15:45:52.265047 34287 (net.c:609):Received packet
0000 04 00 02 00 00 00 00 00-00 fb b0 4c 00 00 00 00 |........ ...L....|
0010 00 00 4c b0 fb 02 00 00-00 20 00 10 5d 04 00 00 |..L..... . ..]...|
0020 00 00 00 00 00 00 00 00-02 b1 4c 00 00 00 00 00 |........ ..L.....|
0030 00 4c b1 02 02 00 00 00-20 00 00 08 00 00 00 00 |.L...... .......|
0040 00 00 00 40 d1 08 00 00-00 00 00 00 08 40 2a 00 |...@.... .....@.|
0050 00 00 62 00 72 00 75 00-63 00 65 00 73 00 40 00 |..b.r.u. c.e.s.@.|
0060 65 00 6c 00 6c 00 75 00-6d 00 69 00 6e 00 61 00 |e.l.l.u. m.i.n.a.|
0070 74 00 65 00 2e 00 63 00-6f 00 6d 00 08 00 00 00 |t.e...c. o.m.....|
0080 00 28 cd 02 41 08 00 00-00 00 40 de fd 40 10 5e |.(..A... ..@..@.^|
0090 04 00 00 00 00 00 00 00-00 00 00 0b b1 4c 00 00 |........ .....L..|
00a0 00 00 00 00 4c b1 0b 02-00 00 00 20 00 10 5f 04 |....L... ... ..
.|
00b0 00 00 00 00 00 00 00 00-00 00 12 b1 4c 00 00 00 |........ ....L...|
00c0 00 00 00 4c b1 12 02 00-00 00 20 00 00 08 00 00 |...L.... .. .....|
00d0 00 00 00 00 08 40 d1 08-00 00 00 00 00 00 10 40 |.....@.. .......@|
00e0 2a 00 00 00 62 00 72 00-75 00 63 00 65 00 73 00 |_...b.r. u.c.e.s.|
00f0 40 00 65 00 6c 00 6c 00-75 00 6d 00 69 00 6e 00 |@.e.l.l. u.m.i.n.|
0100 61 00 74 00 65 00 2e 00-63 00 6f 00 6d 00 08 00 |a.t.e... c.o.m...|
0110 00 00 00 28 cd 02 41 08-00 00 00 00 40 ab fe 40 |...(..A. ....@..@|
0120 10 80 01 23 00 00 00 00-00 00 00 00 00 1b b1 4c |...#.... .......L|
0130 00 00 00 00 00 00 4c b1-1b 02 00 00 00 20 00 10 |......L. ..... ..|
0140 81 01 23 00 00 00 00 00-00 00 00 00 23 b1 4c 00 |..#..... ....#.L.|
0150 00 00 00 00 00 4c b1 23-02 00 00 00 20 00 00 08 |.....L.# .... ...|
0160 00 00 00 00 00 00 10 40-d1 08 00 00 00 00 00 00 |.......@ ........|
0170 24 40 12 00 00 00 75 00-69 00 67 00 63 00 61 00 |[email protected]. i.g.c.a.|
0180 64 00 6d 00 69 00 6e 00-08 00 00 00 00 68 14 03 |d.m.i.n. .....h..|
0190 41 08 00 00 00 00 18 24-00 41 10 82 01 23 00 00 |A......$ .A...#..|
01a0 00 00 00 00 00 00 00 2b-b1 4c 00 00 00 00 00 00 |.......+ .L......|
01b0 4c b1 2b 02 00 00 00 20-00 10 83 01 23 00 00 00 |L.+.... ....#...|
01c0 00 00 00 00 00 00 32 b1-4c 00 00 00 00 00 00 4c |......2. L......L|
01d0 b1 32 02 00 00 00 20 00-00 08 00 00 00 00 00 00 |.2.... . ........|
01e0 24 40 d1 08 00 00 00 00-00 00 26 40 12 00 00 00 |$@...... ..&@....|
01f0 75 00 69 00 67 00 63 00-61 00 64 00 6d 00 69 00 |u.i.g.c. a.d.m.i.|

15:45:52.265173 34287 (token.c:2304):tds_process_row(): reading column 5
15:45:52.265180 34287 (token.c:2049):tds_get_data: type 0, varint size 1
15:45:52.265190 34287 (token.c:2110):tds_get_data(): wire column size is -1
15:45:52.265200 34287 (token.c:2304):tds_process_row(): reading column 6
15:45:52.265210 34287 (token.c:2049):tds_get_data: type 98, varint size 1
15:45:52.265220 34287 (token.c:2110):tds_get_data(): wire column size is 8
15:45:52.265231 34287 (token.c:2304):tds_process_row(): reading column 7
15:45:52.265241 34287 (token.c:2049):tds_get_data: type 65, varint size 1
15:45:52.265250 34287 (token.c:2110):tds_get_data(): wire column size is 209
15:45:52.265258 34287 (util.c:156):Changed query state from READING to PENDING
15:45:52.265268 34287 (buffering.h:306):buffer_transfer_bound_data(0x7f4ae5eccf80 4040 -1 0x7f4ae5eccf70 0)
15:45:52.265286 34287 (dblib.c:2100):leaving dbnextrow() returning REG_ROW/MORE_ROWS
15:45:52.265292 34287 (dblib.c:1813):dbnumcols(0x7f4ae5eccf70)
15:45:52.265305 34287 (dblib.c:2831):dbcoltype(0x7f4ae5eccf70, 1)
15:45:52.265317 34287 (dblib.c:3133):dbdatlen(0x7f4ae5eccf70, 1)
15:45:52.265322 34287 (dblib.c:3142):dbdatlen() type = 109, len= 8
15:45:52.265328 34287 (dblib.c:3162):dbdata(0x7f4ae5eccf70, 1)
15:45:52.265333 34287 (dblib.c:2812):dbwillconvert(SYBFLT8, SYBCHAR)
15:45:52.265340 34287 (convert.c:2788):tds_willconvert(62, 47)
15:45:52.265348 34287 (convert.c:2792):tds_willconvert(62, 47) returns yes
15:45:52.265356 34287 (dblib.c:2217):dbconvert(0x7f4ae5eccf70, SYBFLT8, 0x7f4ae5ef1020, 8, SYBCHAR, 0x7f4ae5f076a0, -1)
15:45:52.265361 34287 (dblib.c:2349):dbconvert() calling tds_convert
15:45:52.265383 34287 (dblib.c:2352):dbconvert() called tds_convert returned 1
15:45:52.265389 34287 (dblib.c:2455):dbconvert() outputting 1 bytes character data destlen = -1
15:45:52.265395 34287 (dblib.c:2831):dbcoltype(0x7f4ae5eccf70, 2)
15:45:52.265400 34287 (dblib.c:3133):dbdatlen(0x7f4ae5eccf70, 2)
15:45:52.265405 34287 (dblib.c:3142):dbdatlen() type = 35, len= 61
15:45:52.265409 34287 (dblib.c:3162):dbdata(0x7f4ae5eccf70, 2)
15:45:52.265414 34287 (dblib.c:2812):dbwillconvert(SYBTEXT, SYBCHAR)
15:45:52.265419 34287 (convert.c:2788):tds_willconvert(35, 47)
15:45:52.265424 34287 (convert.c:2792):tds_willconvert(35, 47) returns yes
15:45:52.265429 34287 (dblib.c:2217):dbconvert(0x7f4ae5eccf70, SYBTEXT, 0x7f4ae5ef1028, 61, SYBCHAR, 0x7f4ae5f07ab0, -1)
15:45:52.265434 34287 (dblib.c:2349):dbconvert() calling tds_convert
15:45:52.265442 34287 (dblib.c:2352):dbconvert() called tds_convert returned 61
15:45:52.265447 34287 (dblib.c:2455):dbconvert() outputting 61 bytes character data destlen = -1
15:45:52.265452 34287 (dblib.c:2831):dbcoltype(0x7f4ae5eccf70, 3)
15:45:52.265457 34287 (dblib.c:3133):dbdatlen(0x7f4ae5eccf70, 3)
15:45:52.265462 34287 (dblib.c:3142):dbdatlen() type = 0, len= 0
15:45:52.265467 34287 (dblib.c:3162):dbdata(0x7f4ae5eccf70, 3)
15:45:52.265471 34287 (dblib.c:2831):dbcoltype(0x7f4ae5eccf70, 4)
15:45:52.265476 34287 (dblib.c:3133):dbdatlen(0x7f4ae5eccf70, 4)
15:45:52.265481 34287 (dblib.c:3142):dbdatlen() type = 0, len= 0
15:45:52.265485 34287 (dblib.c:3162):dbdata(0x7f4ae5eccf70, 4)
15:45:52.265490 34287 (dblib.c:2831):dbcoltype(0x7f4ae5eccf70, 5)
15:45:52.265494 34287 (dblib.c:3133):dbdatlen(0x7f4ae5eccf70, 5)
15:45:52.265499 34287 (dblib.c:3142):dbdatlen() type = 0, len= 0
15:45:52.265504 34287 (dblib.c:3162):dbdata(0x7f4ae5eccf70, 5)
15:45:52.265509 34287 (dblib.c:2831):dbcoltype(0x7f4ae5eccf70, 6)
15:45:52.265513 34287 (dblib.c:3133):dbdatlen(0x7f4ae5eccf70, 6)
15:45:52.265518 34287 (dblib.c:3142):dbdatlen() type = 0, len= 0
15:45:52.265522 34287 (dblib.c:3162):dbdata(0x7f4ae5eccf70, 6)
15:45:52.265527 34287 (dblib.c:2831):dbcoltype(0x7f4ae5eccf70, 7)
15:45:52.265532 34287 (dblib.c:3133):dbdatlen(0x7f4ae5eccf70, 7)
15:45:52.265536 34287 (dblib.c:3142):dbdatlen() type = 98, len= 8
15:45:52.265541 34287 (dblib.c:3162):dbdata(0x7f4ae5eccf70, 7)
15:45:52.265545 34287 (dblib.c:2812):dbwillconvert(SYBVARIANT, SYBCHAR)
15:45:52.265550 34287 (convert.c:2788):tds_willconvert(98, 47)
15:45:52.265555 34287 (dblib.c:2831):dbcoltype(0x7f4ae5eccf70, 8)
15:45:52.265560 34287 (dblib.c:3133):dbdatlen(0x7f4ae5eccf70, 8)
15:45:52.265565 34287 (dblib.c:3142):dbdatlen() type = 65, len= 112
15:45:52.265569 34287 (dblib.c:3162):dbdata(0x7f4ae5eccf70, 8)
15:45:52.265574 34287 (dblib.c:2812):dbwillconvert(SYBUINT2, SYBCHAR)
15:45:52.265579 34287 (convert.c:2788):tds_willconvert(65, 47)
postgres@bitarena:~$

I can connect with fisql to the remote sybase server and retrieve that record with no problem:

postgres@bitarena:~$ fisql -S sybase -Usa -Pnot1common -w800 -D sas_db
Msg 5701, Level 10, State 2:
Server 'vastg_db', Changed database context to 'master'.

Msg 5701, Level 10, State 1:
Server 'vastg_db', Line 1:
Changed database context to 'sas_db'.

1>>
2>> set rowcount 1
3>> select * from web_app.ApiSession order by ApiSessionId
4>> go
ApiSessionId ApiSessionCreatorUID AdministratorLoginId MeetingSessionId ApiSessionUserNotes ApiSessionModNotes ApiSessionIsDeleted ApiSessionRemoteId


1 [email protected] 154021 122338 2000 2000 1 1 a

Any ideas?

Thanks!

Jeff

long varchar(max) and varbinary(max) fields truncated

I have found that long strings and long byte arrays are truncated to 64512 chars/bytes when imported from SQL Server. The cause seems to be that freetds's dbdatlen function returns 64512 as the srclen. Not sure yet if this is a problem in freetds, or if dbdatlen is the wrong API to call.

Note that in their documentation Microsoft says that the storage size for varchar and varbinary is the data length + 2 bytes.

Use DB-Library's dbdatecrack() and PostgreSQL's make_timestamp() to make changes to locales.conf unnecessary

I don't really like the fact that users have to edit the default locales.conf to allow PostgreSQL to understand timestamp strings returned by FreeTDS.

It looks like it would be easy to use a DB-Library function like dbdatecrack() to pull out the individual parts of timestamp, date and time columns.. Then I could just use make_timestamp() and the other similar functions to build the timestamp, date, or time columns.

I should probably put this code in tdsConvertToCString().

I haven't ever tried to call PostgreSQL's SQL functions (like make_timestamp) from C code, but I think it would be worth it to learn how to do so.

How to suppress "NOTICE: DB-Library notice:"

Hi Geoff,
I have just configured the tds_fdw, and it is working just fine. My question is, how do I suppress the message below. Is there a flag in the create server command that does this? Thanks

NOTICE: DB-Library notice: Msg #: 5701, Msg state: 2, Msg: Changed database context to 'master'., Server: WD ...
NOTICE: DB-Library notice: Msg #: 5701, Msg state: 1, Msg: Changed database context to 'test'., Server: ...
NOTICE: DB-Library notice: Msg #: 5701, Msg state: 2, Msg: Changed database context to 'master'., Server: ..
NOTICE: DB-Library notice: Msg #: 5701, Msg state: 1, Msg: Changed database context to 'test'., Server: ..
NOTICE: No more rows

dbuse() doesn't work with Azure

When working with Azure, dbuse() results in messages like the following:

NOTICE:  DB-Library notice: Msg #: 5701, Msg state: 2, Msg: Changed database context to 'master'., Server: ms, Process: , Line: 1, Level: 0
NOTICE:  DB-Library notice: Msg #: 5703, Msg state: 1, Msg: Changed language setting to us_english., Server: ms, Process: , Line: 1, Level: 0
NOTICE:  DB-Library notice: Msg #: 40508, Msg state: 1, Msg: USE statement is not supported to switch between databases. Use a new connection to connect to a different database., Server: ms, Process: , Line: 1, Level: 16
ERROR:  DB-Library error: DB #: 40508, DB Msg: General SQL Server error: Check messages from the SQL Server, OS #: -1, OS Msg: (null), Level: 16

dbuse() calls USE behind the scenes. This is not supported with Azure:

http://stackoverflow.com/a/14167073/1732980

Is there a way to supply the initial database name to dbopen()? If so, a potential fix would be to add an option to specify whether to use dbopen() or dbuse() to connect to a specific database.

can i update foreign table?

hello, can i update the foreign table?

i try with

update foreign_table set field=1 

and i get the error

ERROR: cannot update foreign table "foregin_table"
SQL state: 0A000

thanks

Updating reported version number

Hi,

I upgraded from v1.0.3 to v1.0.6. The compile and install went fine, I checked the dates on the new files in the install folders.

However when you check the version with \dx, it still reports as being v1.0.3. I know the upgrade worked because I can now run a query that would previously fail due to a memory leak that is now fixed.

I did check the tds_fdw.control file and default_version = '1.0.6' is there, so I'm not sure why it's still displaying that 1.0.3 is installed.

Is there a way to get the extension to reflect the correct version information? If just for sanity's sake later on when upgrading again.

Thanks!

strings, raw values and performance

@GeoffMontee, I notice that you are converting everything to string and then using BuildTupleFromCStrings. For performance, I'm interested in trying to get it to work with raw values and heap_form_tuple. But before I spend time on it I'd like to know if there is some good reason why this can't or shouldn't be done?

WHERE-clause / column push-down

Would be nice to have the README mention if "where clause push-down" and "column push-down" is supported.

I am accessing a partitioned table on MS SQL Server 2008, and the WHERE clause I provide on the PostgreSQL side would allow SQL Server to limit access to 1 partition. However, that doesn't appear to work (it seems the whole table, with all partitions is accessed).

I am working around this by creating the foreign table on a query instead which contains the respective WHERE clause, but this is extremely tedious, since now I need to create a foreign table for each partition of the source table.

make install fails on CentOs 6.5 64 bits - Postgresql 9.3

Hi,
I am trying to install tds_fdw extension on CentOs 6.5 and postgresql 9.3, but make fails at this step: PATH=/usr/pgsql-9.2/bin:$PATH make USE_PGXS=1 install (https://github.com/GeoffMontee/tds_fdw#clone-and-build-1)

When I tried to create tds_fdw extension, the following error occurred:

postgres=# CREATE EXTENSION tds_fdw;
ERROR: could not access file "$libdir/tds_fdw": No such file or directory

Could you help?
I installed Postgresl 9.3 from official repo.

Thanks!
Vitor

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.