Skip to Content.
Sympa Menu

freetds - Re: [freetds] ODBC SQLExecute succeeds when it shouldn't

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • 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




Archive powered by MHonArc 2.6.24.

Top of Page