Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id E116F47665E for ; Wed, 25 Sep 2002 20:12:48 -0400 (EDT) Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by postgresql.org (Postfix) with SMTP id 0E94F476407 for ; Wed, 25 Sep 2002 20:12:46 -0400 (EDT) Received: (qmail 21156 invoked from network); 26 Sep 2002 00:12:47 -0000 Received: from unknown (HELO viscomail.tpf.co.jp) (100.0.0.108) by sd2.tpf-fw-c.co.jp with SMTP; 26 Sep 2002 00:12:47 -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 JAA14509; Thu, 26 Sep 2002 09:12:46 +0900 (JST) Message-ID: <3D925124.C516D02B@tpf.co.jp> Date: Thu, 26 Sep 2002 09:13:24 +0900 From: Hiroshi Inoue X-Mailer: Mozilla 4.73 [ja] (Windows NT 5.0; U) X-Accept-Language: ja MIME-Version: 1.0 To: CN LIOU Cc: pgsql-odbc@postgresql.org Subject: Re: IODBC32.DLL: Access Violation References: <20020925125241.9155.qmail@graffiti.net> Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/94 X-Sequence-Number: 2065 CN LIOU wrote: > > Thank you very much! Hiroshi, > > > > psqlODBC 7.02.0002 + PostgreSql 7.2.1 + Borland BDE +Windows95. > > [snip] > > > > > > > Thus, I am trying to use TEXT column instead - and fail, too: > > > > > > create table MyTable (c1 integer,c2 text); > > > --Then fill up value2 with string value using Delphi. > > > INSERT INTO MyTable VALUES(:value1,:value2) > > > > > > The INSERT results in Access Violation from IDODBC32.DLL. > > > Please note that value2 is about 55 kbytes in size and contains > > > some low values, '\0' in terms of C. Can this be the problem > > > confusing pgsqlODBC? > > > > Yes. > > I have then also removed low values from the string but AV remains. I have set the pgsqlODBC switches according to the instructions in: > > http://gborg.postgresql.org/project/psqlodbc/faq/faq.php?faq_id=61 > > Can '\r' or '\n' be a problem? Maybe. Please turn off *LF <-> CR/LF conversion* DSN option setting. > What are the allowed/disallowed characters in LongVarChar > (to be sent to postgreSQL TEXT data type column)? AFAIK there's no inhibited character other than '\0'. However there may be another problem. If you are in a multibyte environment the client encoding would be converted to the server's one. regards, Hiroshi Inoue http://w2422.nsk.ne.jp/~inoue/