Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 37624475AD7 for ; Tue, 19 Nov 2002 19:01:29 -0500 (EST) Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by postgresql.org (Postfix) with SMTP id 36D6747592C for ; Tue, 19 Nov 2002 19:01:27 -0500 (EST) Received: (qmail 20805 invoked from network); 20 Nov 2002 00:01:29 -0000 Received: from unknown (HELO viscomail.tpf.co.jp) (100.0.0.108) by sd2.tpf-fw-c.co.jp with SMTP; 20 Nov 2002 00:01:29 -0000 Received: from tpf.co.jp (3dgateway1 [126.0.1.60]) by viscomail.tpf.co.jp (8.8.8+Sun/8.8.8) with ESMTP id JAA01301; Wed, 20 Nov 2002 09:01:28 +0900 (JST) Message-ID: <3DDAD131.95497251@tpf.co.jp> Date: Wed, 20 Nov 2002 09:02:57 +0900 From: Hiroshi Inoue X-Mailer: Mozilla 4.73 [ja] (Windows NT 5.0; U) X-Accept-Language: ja MIME-Version: 1.0 To: Bo?ena Potempa Cc: pgsql-odbc@postgresql.org Subject: Re: PostgreSQL+ Beta bug? References: Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/103 X-Sequence-Number: 2280 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/