[freetds] Fw: patch for codes return in wrong part of odbc struct.

ZIGLIO, Frediano, VF-IT Frediano.Ziglio at vodafone.com
Wed Apr 28 03:36:08 EDT 2004

> The patch(es) fix a problem with SQLGetInfo() (src/odbc.c) 
> that shows up
> accessing a sqlserver (6.0) DB using the msjet dll's (3.5 and/or 4.0)
> under WINE accessing freeTDS through unixODBC.
> The error that appears is a
> "Reserved Error (-7701)
>   there is no message for this error. (3000)."
> Tracking it down I found odbc.c is returning the right value from
> SQLGetInfo() (for SQL_ODBC_API_CONFORMANCE) but in an 
> unexpected field.
> I don't know enough about it to guess if it the return value 
> is required
> in the field that is currently used by other applications, so 
> the patch
> below simply changes odbc.c to return it in both.
> When SQL_TXN_CAPABLE is the parameter to SQLGetInfo() a
> similar error is generated and the fix is identical.

Try attached patch.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: vedi.diff.gz
Type: application/x-gzip
Size: 885 bytes
Desc: vedi.diff.gz
Url : http://lists.ibiblio.org/pipermail/freetds/attachments/20040428/2a757cc2/attachment.gz 

More information about the FreeTDS mailing list