Problem with simple SELECT over ODBC
am 03.09.2010 11:00:45 von Werner KuhnleThis message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_000_0001DB25.4C80D55D
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hello,
I am completely new to PostgreSQL and wanted to evaluate PostgreSQL as a =
substitute for MS SQL.
Therefore I installed PG 9 RC and ODBC driver 8.04.02 (ANSI)
The program (EXE) calling the ODBC driver (Windows 32bit written in VC++) =
is using ANSI strings, not Unicode.
When I try the following simple SELECT :
SELECT =
Kurzzeichen,Name_Feld,EURO_Umr_Faktor,NKStellen,RowTimestamp ,RowUserID,RowD=
DMFields,RowID FROM Waehrungen ORDER BY Kurzzeichen
=20
from within pgAdminIII then it works well.
When I use exactly the same query with MS SQL and the SQL Server Native =
Client 10.0 ODBC Driver
it also works well.
But when exactly the same SELECT is issued to PG over the PG ODBC driver =
then I get :
SQLRetcode=3D-1
SqlState=3D42601, NativeError=3D7, MessageText=3DERROR; syntax error at =
=BB,=AB;
=20
Playing around some time with ENCODING=3DWIN1252 instead of UTF-8 and =
trying the UNICODE odbc driver instead of the ANSI driver gives the =
following results:
With the UNICODE driver the message does not occur, but the data returned =
is completely corrupted.
With ENCODING=3DWIN1252 the message is slightly different:
SQLRetcode=3D-1
SqlState=3D42601, NativeError=3D7, MessageText=3DERROR; syntax error at =
»,«;
=20
What's wrong here ?
Thanks in advance for any help/hint.
Greetings
Werner
------_=_NextPart_000_0001DB25.4C80D55D
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
charset=3Diso-8859-1">