freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
Re: [freetds] ODBC SQLExecute succeeds when it shouldn't
- From: "James K. Lowden" <jklowden AT schemamania.org>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] ODBC SQLExecute succeeds when it shouldn't
- Date: Sat, 29 Nov 2003 22:31:47 -0500
On Tue, 25 Nov 2003, <nj-freetds AT talbott.ws> wrote:
> I'm using a nightly snapshot of FreeTDS (20031125) with unixODBC and the
> Ruby ODBC bindings. It was working well... actually, a little TOO well.
> Queries that should raise errors weren't, for instance:
...
> After much looking at Ruby/ODBC trace statements and TDSDUMP logs, I
> made the following small patch:
...
> case TDS_DONEINPROC_RESULT:
> + if(done_flags & TDS_DONE_ERROR)
> + result = SQL_ERROR;
...
> See that TODO there? I was hitting an error that showed up in
> DONEINPROC, and thus _SQLExecute was returning a SQL_SUCCESS_WITH_INFO
> instead of a SQL_ERROR.
Freddy: I applied this patch, so it didn't get lost. It looks right to
me, but if you don't like it, just back it out.
Thanks, Nathaniel! I know tracking down which two lines need adding is
much harder than adding them.
--jkl
-
[freetds] ODBC SQLExecute succeeds when it shouldn't,
nj-freetds, 11/25/2003
-
Re: [freetds] ODBC SQLExecute succeeds when it shouldn't,
James K. Lowden, 11/29/2003
- Re: [freetds] ODBC SQLExecute succeeds when it shouldn't, Nathaniel Talbott, 11/29/2003
-
Re: [freetds] ODBC SQLExecute succeeds when it shouldn't,
James K. Lowden, 11/29/2003
Archive powered by MHonArc 2.6.24.