pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Han <zhouhanok@vip.sina.com>
To: Hiroshi Inoue <Inoue@tpf.co.jp>
Cc: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Subject: Re: Problem about Bytea and SQL_C_CHAR
Date: Thu, 28 Nov 2002 16:11:50 +0800
Message-ID: <20021128081129.D7C15475A9E@postgresql.org> (raw)

Hiroshi Inoue,

	OK, that crash problem solved. But there are even more datatype conversion problems.
	First I prepared an insert statement, bound params all using SQL_C_CHAR and SQL_NTS, and execute it. All type of column values were inserted properly except bytea--it's null in the column.
	And then I retrived data from the table I just inserted, binding columns with SQL_C_DEFAULT. Most colums returned wrong value.
	Notice that I use SQL_C_CHAR for insert and SQL_C_DEFAULT for retrive.
	Please check it. Thanks and regards!
>
>Maybe I found a cause. Please try the snapshot dll again.
>Thanks a lot.
>
>Hiroshi Inoue
>	http://w2422.nsk.ne.jp/~inoue/
>
>---------------------------(end of broadcast)---------------------------
>TIP 6: Have you searched our list archives?
>
>http://archives.postgresql.org


				
        Han
        zhouhanok@vip.sina.com
          2002-11-28







view thread (8+ messages)  latest in thread

Message-ID: <20021128081129.D7C15475A9E@postgresql.org>
Permalink:  ../20021128081129.D7C15475A9E@postgresql.org/
Also on:    postgresql.org/message-id/20021128081129.D7C15475A9E@postgresql.org

 · 

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: zhouhanok@vip.sina.com, Inoue@tpf.co.jp
  Subject: Re: Problem about Bytea and SQL_C_CHAR
  In-Reply-To: <20021128081129.D7C15475A9E@postgresql.org>
  References: <20021128081129.D7C15475A9E@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