Re: Problem with simple SELECT over ODBC

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Problem with simple SELECT over ODBC
Дата
Msg-id 22386.1283524556@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Problem with simple SELECT over ODBC  ("Werner Kuhnle" <wek@kuhnle.com>)
Список 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 по дате отправления:

Предыдущее
От: "Werner Kuhnle"
Дата:
Сообщение: Problem with simple SELECT over ODBC
Следующее
От: "Werner Kuhnle"
Дата:
Сообщение: Re-2: Problem with simple SELECT over ODBC