From: Hiroshi Inoue <Inoue@tpf.co.jp>
To: Bo?ena Potempa <Bozena.Potempa@otc.pl>
Cc: pgsql-odbc@postgresql.org
Subject: Re: PostgreSQL+ Beta bug?
Date: Wed, 20 Nov 2002 09:02:57 +0900
Message-ID: <3DDAD131.95497251@tpf.co.jp> (raw)
References: <MKEIIFDEFPOPHIPFIFJCAEFDDHAA.Bozena.Potempa@otc.pl>
Bo?ena Potempa wrote:
>
> [..]
> >Hmm the difference may come from (non-)multibyte mode.
>
> I don't think so. My PostgreSQL on Linux installation is standard,
> without support for multibyte characters, without support for
> any national characterset and sorting. Just installed
> 'as is' on the fresh RedHat 7.3.
Isn't your PostgreSQL on Windows NT with multibyte suppoort ?
My environment is with multibyte support and so it doesn't
support non-null-terminated string.
> >> Now I am not sure which behaviour is correct (and planned
> >> by PostgreSQL developers).
> >
> >As far as I see PostgreSQL couldn't handle non-null-terminated
> >strings correctly.
>
> OK. But I think, that even if some earlier versions of PostgreSQL
> do not support 0s in strings then later versions will support them.
> So ODBC driver should not cut strings containing zeroes, but
According to an ODBC related document, the behavior of ODBC
functions in such case is undefined and it is driver-specific
if a driver handles this correctly.
> insert/read data entirely making usage of provided length.
> Is it implemented like that?
No and how can I implement it ?
Must I convert '\0' to "|| chr(0) ||" where there's no
guarantee that it works ?
regards,
Hiroshi Inoue
http://w2422.nsk.ne.jp/~inoue/
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, Bozena.Potempa@otc.pl
Subject: Re: PostgreSQL+ Beta bug?
In-Reply-To: <3DDAD131.95497251@tpf.co.jp>
References: <MKEIIFDEFPOPHIPFIFJCAEFDDHAA.Bozena.Potempa@otc.pl> <3DDAD131.95497251@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