[freetds] bug: ODBC cannot update data
Lowden, James K
LowdenJK at bernstein.com
Fri Feb 27 18:39:03 EST 2004
Using unixODBC-2.2.6 with 0.62.1 or current CVS, executing a query on SQL Server 2000 does not change data when it should. This appears to be an error in our ODBC driver. I think this may also be the case with SQL Server 7.0.
This problem occurs not only with isql. I found it initially with DBD::ODBC.
Demonstration and log follow.
--jkl
## success with tsql ##
$ tsql -Smpquant -U$DBI_USER -P$DBI_PASS
locale is "C"
using default charset "ISO-8859-1"
Msg 5703, Level 0, State 1, Server AC2KAMA0848, Line 0
Changed language setting to us_english.
1> select * into #t from testdb..t
2> go
1> select * from #t
2> go
t
123456789
argentina
1> select @@version
2> go
Microsoft SQL Server 2000 - 8.00.818 (Intel X86)
May 31 2003 16:08:15
Copyright (c) 1988-2003 Microsoft Corporation
Enterprise Edition on Windows NT 5.0 (Build 2195: Service Pack 3)
1> version
using TDS version 8.0
## failure with odbc ##
$ printf "select * into #t from testdb..t\nselect * from #t" |isql mpquant $DBI_USER $DBI_PASS
+---------------------------------------+
| Connected! |
...
SQL> select * into #t from testdb..t
SQL> select * from #t -- should return 2 rows
[ISQL]INFO: SQLExecute returned SQL_SUCCESS_WITH_INFO
<<dump>>
-----------------------------------------
The information contained in this transmission may contain privileged and confidential information and is intended only for the use of the person(s) named above. If you are not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, any review, dissemination, distribution or duplication of this communication is strictly prohibited. If you are not the intended recipient, please contact the sender immediately by reply e-mail and destroy all copies of the original message. Please note that we do not accept account orders and/or instructions by e-mail, and therefore will not be responsible for carrying out such orders and/or instructions.
If you, as the intended recipient of this message, the purpose of which is to inform and update our clients, prospects and consultants of developments relating to our services and products, would not like to receive further e-mail correspondence from the sender, please "reply" to the sender indicating your wishes. In the U.S.: 1345 Avenue of the Americas, New York, NY 10105.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dump
Type: application/octet-stream
Size: 17503 bytes
Desc: dump
Url : http://lists.ibiblio.org/pipermail/freetds/attachments/20040227/6cf09e2e/dump-0001.obj
More information about the FreeTDS
mailing list