Re: psqlodbc30w.dll: wrong string termination after SQLFetch for - Mailing list pgsql-odbc

From Hiroshi Inoue
Subject Re: psqlodbc30w.dll: wrong string termination after SQLFetch for
Date
Msg-id 3FE7D0A8.9D5BC206@tpf.co.jp
Whole thread Raw
In response to psqlodbc30w.dll: wrong string termination after SQLFetch for SQL_C_WCHAR buffer bound via SQLBindCol  (zisi1@gmx.net)
List pgsql-odbc
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

pgsql-odbc by date:

Previous
From: Hiroshi Inoue
Date:
Subject: Re: Can't connect to DB using psqlodbc when log_duration=true &
Next
From: Simeó Reig
Date:
Subject: Hiroshi leaves the psqlodc driver ?