Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id DC719475B8A for ; Wed, 20 Nov 2002 11:49:48 -0500 (EST) Received: from ns.otc.pl (ns.otc.pl [62.233.151.194]) by postgresql.org (Postfix) with ESMTP id E7A5E475ADE for ; Wed, 20 Nov 2002 11:49:46 -0500 (EST) Received: from BOZENA ([62.233.151.193]) by ns.otc.pl (8.9.3/8.9.0) with SMTP id RAA15402; Wed, 20 Nov 2002 17:54:49 +0100 From: "Bo?ena Potempa" To: "Hiroshi Inoue" Cc: Subject: Re: PostgreSQL+ Beta bug? Date: Wed, 20 Nov 2002 17:48:42 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal In-Reply-To: <3DDAD131.95497251@tpf.co.jp> X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/143 X-Sequence-Number: 2320 [..] >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. OK. If it is driver-specific then why don't allow users to to use this feature if it is implemented in the server? >> 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 ? Why not? Your statement suggests that parameter values are hard-coded into SQL statements by ODBC driver. Is that true? If you encode 0 as "|| chr(0) ||" it will change nothing: if the server is able to store something after 0 then it will be stored, otherwise not. If you afraid then maybe this behaviour can be implemented as an option to the ODBC data source (like "LF<->CR/LF Conversion")? Is it much work to add such option? Best regards, Bozena Potempa P.S. 0s in strings are important for some of our customers, storing very strange things in their old Clipper applications.