Skip to Content.
Sympa Menu

freetds - [freetds] quick ODBC test

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] quick ODBC test
  • Date: Fri, 2 Dec 2005 15:19:12 -0500

Could someone with Perl, unixODBC, and a current snapshot run a little
test for me?

CREATE proc t
as begin
select 'Here is the first row' as FirstResult
raiserror( 'This is an example error message.', 9, 1)
select 'Here is the last row' as LastResult
end

$ perl -w samples/odbc_rpc.pl -D $DSN -U $USER -P $P t

I would like to know if all three lines are returned.

In 0.63, the error message is discarded. Before we release 0.64, I'd
like to confirm again that it now works correctly.

These are my results from April 2005:

$ TDSDUMP=dump perl -w samples/odbc_rpc.pl -D $DSN -U $USER -P $P t;
head dump
Binding parameter #1, the return code
Executing: "{? = call t }" with parameters ''
execute returned: '-1'
Result #1:
[FirstResult]
'Here is the first row'
DBD::ODBC::st fetchrow failed: [unixODBC][FreeTDS][SQL Server]This is an
example error message. (SQL-)(DBD: st_fetch/SQLMoreResults err=-1) at
/usr/users/home/jklowden/projects/freetds.cvs/freetds/samples/odbc_rpc.p
l line 96.
'Here is the first row'
'Here is the last row'
13:17:11.930179 Starting log file for FreeTDS 0.63
on 2005-04-07 13:17:11 with debug level 99.
13:17:11.930385 Using trivial iconv from
../../../src/replacements/iconv.c

I don't use ODBC, but I'd like to promise (correctly) that the
results-error-results bug has been fixed.

(I know this has been discussed before. I'm sorry if it's redundant.)

Many thanks.

--jkl







-----------------------------------------
The information contained in this transmission may be privileged and
confidential 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.




Archive powered by MHonArc 2.6.24.

Top of Page