Skip to Content.
Sympa Menu

freetds - Re: [freetds] Thanks to Patrick and Freddy, but still some suggestion for Freddy, Patrick and those who can't make iODBC and FreeTDS work together.

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Frediano Ziglio <freddyz77 AT tin.it>
  • To: FreeTDS <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Thanks to Patrick and Freddy, but still some suggestion for Freddy, Patrick and those who can't make iODBC and FreeTDS work together.
  • Date: 19 Dec 2002 08:10:28 +0100

Il mer, 2002-12-18 alle 20:13, Ou Liu ha scritto:
> Hi, everyone
> ...
>
> 2. For Freddy
> I see you in version 1.103 try to let the SQLSetEnvAttr return a
> SQL_SUCCESS when it was asked to set the version, but it is useless,
> especially based on the patch of Patrick. Since by that the iODBC Manager
> will think that the odbc driver of freetds is Version 3 and you will meet
> problem when the iODBC Manager call the SQLGetStmtAttr in function
> SQLAllocStmt located in the hstmt.c, at there the iODBC will first check the
> version of the odbc driver, and by your code (of course you have commented
> it out) it will think that the driver is of version 3. Then it will call the
> SQLGetStmtAttr of yours, no matter what you do, here an error will appear:
> (1) if you comment the code of SQLGetStmtAttr
> (2) or you just let the SQLGetStmtAttr return an error.
> In both occasion, the function will return a fail which will make the
> odbctest abort.
>
...
I forgot to not export SQLSetEnvAttr... fixed in CVS...
I think one of the next improvement (after 0.61 release) of ODBC driver is
best error handling and version 3...

freddy77





Archive powered by MHonArc 2.6.24.

Top of Page