pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Werner Kuhnle <wek@kuhnle.com>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Problem with simple SELECT over ODBC
Date: Fri, 03 Sep 2010 10:35:56 -0400
Message-ID: <22386.1283524556@sss.pgh.pa.us> (raw)
In-Reply-To: <DIIE.0000067D0001DB25@kuhnle.com>
References: <DIIE.0000067D0001DB25@kuhnle.com>

"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 ANSI driver 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



view thread (3+ messages)  latest in thread

Message-ID: <22386.1283524556@sss.pgh.pa.us>
Permalink:  ../22386.1283524556@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/22386.1283524556@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, wek@kuhnle.com
  Subject: Re: Problem with simple SELECT over ODBC
  In-Reply-To: <22386.1283524556@sss.pgh.pa.us>
  References: <DIIE.0000067D0001DB25@kuhnle.com> <22386.1283524556@sss.pgh.pa.us>

* 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