Skip to Content.
Sympa Menu

freetds - Re: [freetds] ODBC: Not reporting some error messages?

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Craig Davison <cd AT securityfocus.com>
  • To: freetds AT lists.ibiblio.org
  • Subject: Re: [freetds] ODBC: Not reporting some error messages?
  • Date: Fri, 7 Feb 2003 12:24:20 -0700

On Fri, Feb 07, 2003 at 01:39:01PM +0100, ZIGLIO Frediano wrote:
> It's strange...
> Using unixODBC 2.2.3 work...

I made the change to print.c and the test did work.

Then I realized that in my code, I didn't make the error buffer large
enough in my call to SQLGetDiagRec (the MessageText and BufferLength
parameters). The error message just happens to be longer than 100 chars.

That explains why the call to SQLGetDiagRec returned
SQL_SUCCESS_WITH_INFO (the MessageText buffer was too small).

So everything's working as it should. Thanks for your help!

--
Craig Davison
Symantec Corporation
+1 (403) 213-3939 ext. 228




Archive powered by MHonArc 2.6.24.

Top of Page