Skip to Content.
Sympa Menu

freetds - [freetds] bug: ODBC cannot update data

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Lowden, James K" <LowdenJK AT bernstein.com>
  • To: "TDS Development Group" <freetds AT lists.ibiblio.org>
  • Subject: [freetds] bug: ODBC cannot update data
  • Date: Fri, 27 Feb 2004 18:39:03 -0500

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.

Attachment: dump
Description: dump



  • [freetds] bug: ODBC cannot update data, Lowden, James K, 02/27/2004

Archive powered by MHonArc 2.6.24.

Top of Page