freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
[freetds] ODBC driver crash when used with libodbc++
- From: Alex Hornby <alex AT anvil.com>
- To: "'FreeTDS Development Group'" <freetds AT lists.ibiblio.org>
- Subject: [freetds] ODBC driver crash when used with libodbc++
- Date: Wed, 29 Oct 2003 10:39:00 +0000
Hi,
The FreeTDS ODBC driver crashes when used from the isql++ command line tool from libodbc++.
The FreeTDS driver also seems to corrupt some of the data returned (compare with the sybase driver below).
To reproduce, build libodbc++ 0.2.3 from http://libodbcxx.sourceforge.net/ and run isql++. For example, here is a run with the FreeTDS driver that ends in a core dump, followed by a run with the sybase driver so that you can see the expected results.
Cheers,
Alex.
$ isql++ 'DSN=TRAJANDEVTDS;UID=blackuser;PWD=xxxxxxxx;WKID=julius;'
Connected to sql server 12.05.0000 using libtdsodbc.so 0.62.dev.20031029
(ODBC Version 3.0)
SQL> select * from sysusers;
suid uid gid name environ
=========== =========== =========== ==== ====================================
-16391 16391 16391 ha_r <NULL>
-16390 16390 16390 dtm_ <NULL>
0 0 0
-16389 16389 16389 repl <NULL>
0 0 0
0 0 0
-16388 16388 16388 navi <NULL>
0 0 0
0 0 0
17 17 17 ? ?
-16387 16387 16387 syba <NULL>
0 0 0
0 0 0
17 17 17 ? ?
4 4 4 Segmentation fault (core dumped)
$ isql++ 'DSN=TRAJANDEV;UID=blackuser;PWD=xxxxxxxx;WKID=julius;'
Connected to SQL Server 12.50.0000 using syodase.so 11.1.1/03.11.0000 (ODBC
Version 3.50)
SQL> select * from sysusers;
suid uid gid name environ
=========== =========== =========== ==== ====================================
-16391 16391 16391 ha_r <NULL>
-16390 16390 16390 dtm_ <NULL>
-16389 16389 16389 repl <NULL>
-16388 16388 16388 navi <NULL>
-16387 16387 16387 syba <NULL>
-16386 16386 16386 oper <NULL>
-16385 16385 16385 sso_ <NULL>
-16384 16384 16384 sa_r <NULL>
-2 0 0 publ <NULL>
45 1 0 dbo <NULL>
46 3 0 blac <NULL>
47 4 0 blac <NULL>
12 rows fetched.
-1 rows affected
SQL>
- [freetds] ODBC driver crash when used with libodbc++, Alex Hornby, 10/29/2003
Archive powered by MHonArc 2.6.24.