From: Hiroshi Inoue <inoue@tpf.co.jp>
To: Werner Kuhnle <wek@kuhnle.com>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Problem with simple SELECT over ODBC
Date: Sat, 04 Sep 2010 06:53:09 +0900
Message-ID: <4C816E45.1070504@tpf.co.jp> (raw)
In-Reply-To: <DIIE.0000067D0001DB25@kuhnle.com>
References: <DIIE.0000067D0001DB25@kuhnle.com>
(2010/09/03 18:00), Werner Kuhnle wrote:
>
> 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,RowDDMFields,RowID
> FROM Waehrungen ORDER BY Kurzzeichen
> 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=-1
> SqlState=42601, NativeError=7, MessageText=ERROR; syntax error at »,«;
Could you send me directly the Mylog output?
> Playing around some time with ENCODING=WIN1252 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.
What do you mean by "corrupted"?
The Unicode driver returns the results in UTF16 strings.
regards,
Hiroshi Inoue
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: inoue@tpf.co.jp, wek@kuhnle.com
Subject: Re: Problem with simple SELECT over ODBC
In-Reply-To: <4C816E45.1070504@tpf.co.jp>
References: <DIIE.0000067D0001DB25@kuhnle.com> <4C816E45.1070504@tpf.co.jp>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox