Re: psqlodbc30w.dll: wrong string termination after SQLFetch for

From: Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp>
To: zisi1(at)gmx(dot)net
Cc: pgsql-odbc(at)postgresql(dot)org
Subject: Re: psqlodbc30w.dll: wrong string termination after SQLFetch for
Date: 2003-12-23 05:20:40
Message-ID: 3FE7D0A8.9D5BC206@tpf.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

zisi1(at)gmx(dot)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

In response to

Browse pgsql-odbc by date

  From Date Subject
Next Message Simeó Reig 2003-12-23 13:40:03 Hiroshi leaves the psqlodc driver ?
Previous Message Hiroshi Inoue 2003-12-23 01:11:42 Re: Can't connect to DB using psqlodbc when log_duration=true &