pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hiroshi Inoue <Inoue@tpf.co.jp>
To: zisi1@gmx.net
Cc: pgsql-odbc@postgresql.org
Subject: Re: psqlodbc30w.dll: wrong string termination after SQLFetch for
Date: Tue, 23 Dec 2003 14:20:40 +0900
Message-ID: <3FE7D0A8.9D5BC206@tpf.co.jp> (raw)
References: <29530.1071567733@www8.gmx.net>

zisi1@gmx.net wrote:
> 
> Hi,
> 
> I have the problem described below in an ODBC application which
> occurs only with PostgreSQL and PostgreSQL-ODBC drivers:
> 
> When I fetch string data via ODBC of a column with the "text"
> datatype (but also when the datatype is "varchar") of a unicode
> encoded database into a SQLWCHAR-buffer, the string termination
> in the out-buffer is set wrong, as only the first byte of the
> string-termination is set to 0 (i.e., SQLWCHAR character at
> relevant position is 0xcdcd before fetch, and set to 0xcd00 after
> fetch instead of 0x000). 

Could you try the dll at
        http://www.geocities.jp/inocchichichi/psqlodbc/ ?

regards,
Hiroshi Inoue



view thread (3+ messages)

Message-ID: <3FE7D0A8.9D5BC206@tpf.co.jp>
Permalink:  ../3FE7D0A8.9D5BC206@tpf.co.jp/
Also on:    postgresql.org/message-id/3FE7D0A8.9D5BC206@tpf.co.jp

 · 

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: Inoue@tpf.co.jp, zisi1@gmx.net
  Subject: Re: psqlodbc30w.dll: wrong string termination after SQLFetch for
  In-Reply-To: <3FE7D0A8.9D5BC206@tpf.co.jp>
  References: <29530.1071567733@www8.gmx.net> <3FE7D0A8.9D5BC206@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