From: Han <zhouhanok@vip.sina.com>
To: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Subject: SQL_C_CHAR & SQL_VARBINARY
Date: Tue, 26 Nov 2002 12:22:39 +0800
Message-ID: <20021126042218.85AC7474E44@postgresql.org> (raw)
Hi,
It seems that convertion between SQL_C_CHAR and SQL_VARBINARY in psqlodbc is not standard. For example, SQL_C_CHAR('01') should be explaned as hexdecimal and be converted to SQL_VARBINARY(00000001), but psqlodbc deals it the same as SQL_CHAR('01')--there are 2 ASCII chars inserted into the database. And vice versa, when retrived form database, SQL_VARBINAY('01') was convered to char string '01', but it should have been it's hex form.
If I was right, I hope a fix to it soon :)
Thanks!!!
Han
zhouhanok@vip.sina.com
2002-11-26
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: zhouhanok@vip.sina.com
Subject: Re: SQL_C_CHAR & SQL_VARBINARY
In-Reply-To: <20021126042218.85AC7474E44@postgresql.org>
References: <20021126042218.85AC7474E44@postgresql.org>
* 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