Thread: error message: the driver doesn't support the version of odbc-function

error message: the driver doesn't support the version of odbc-function

From
"A. Hahnefeld"
Date:
Hi,

I'm trying to connect my PgSQL database (v 7.1.2) via the PostgreSQl-ODBC
driver (v 7.01.00.07).
I'm accessing from Delphi the "SQLDriverConnect" function via the ODBC32.DLL
(v 3.520.6019.0).
In my opinion I use the correct connection parameters 'cause a connection is
made.
The problem is that the connection will be closed immediately with a strange
error message:
"The driver doesn't support the version of the odbc-function, which is
needed (notice SQLSetEnvAttr)"
(This NOT the original message, 'cause it's a translation the original into
english)
The options described if working with Borland products have been set as
described.
I hope someone can help.

Thanks a lot
Andreas Hahnefeld

Attachment

Re: error message: the driver doesn't support the version of

From
Hiroshi Inoue
Date:
"A. Hahnefeld" wrote:
>
> Hi,
>
> I'm trying to connect my PgSQL database (v 7.1.2) via the PostgreSQl-ODBC
> driver (v 7.01.00.07).
> I'm accessing from Delphi the "SQLDriverConnect" function via the ODBC32.DLL
> (v 3.520.6019.0).
> In my opinion I use the correct connection parameters 'cause a connection is
> made.
> The problem is that the connection will be closed immediately with a strange
> error message:
> "The driver doesn't support the version of the odbc-function, which is
> needed (notice SQLSetEnvAttr)"
> (This NOT the original message, 'cause it's a translation the original into
> english)

Your tool seems an ODBC 3.x application.
Unfortunately psqlodbc driver is ODBC 2.5.

regards,
Hiroshi Inoue