Re: Problem with simple SELECT over ODBC - Mailing list pgsql-odbc

From Tom Lane
Subject Re: Problem with simple SELECT over ODBC
Date
Msg-id 22386.1283524556@sss.pgh.pa.us
Whole thread Raw
In response to Problem with simple SELECT over ODBC  ("Werner Kuhnle" <wek@kuhnle.com>)
List pgsql-odbc
"Werner Kuhnle" <wek@kuhnle.com> writes:
> But when exactly the same SELECT is issued to PG over the PG ODBC driver then I get :

> SQLRetcode=-1
> SqlState=42601, NativeError=7, MessageText=ERROR; syntax error at �,�;

> Playing around some time with ENCODING=WIN1252 instead of UTF-8 and trying the UNICODE odbc driver instead of the
ANSIdriver gives the following results: 

> With the UNICODE driver the message does not occur, but the data returned is completely corrupted.

> With ENCODING=WIN1252 the message is slightly different:
> SQLRetcode=-1
> SqlState=42601, NativeError=7, MessageText=ERROR; syntax error at »,«;

> What's wrong here ?

No idea, but the first thing I'd try is looking into the server's log to
see what it thought the received query was.  Anything that generates an
error would be logged by default.

            regards, tom lane

pgsql-odbc by date:

Previous
From: "Werner Kuhnle"
Date:
Subject: Problem with simple SELECT over ODBC
Next
From: "Werner Kuhnle"
Date:
Subject: Re-2: Problem with simple SELECT over ODBC