X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 6214111F60B1 for ; Wed, 26 Apr 2006 09:58:39 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 06135-09 for ; Wed, 26 Apr 2006 09:58:19 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sd.tpf.co.jp (smtp.tpf.co.jp [210.161.239.34]) by postgresql.org (Postfix) with SMTP id F2BF011F60AF for ; Wed, 26 Apr 2006 09:58:15 -0300 (ADT) Received: (qmail 28783 invoked from network); 26 Apr 2006 21:58:15 +0900 X-Authentication: inoue was authenticated by dns.tpf.co.jp at 26 Apr 2006 21:58:15 +0900 Received: from unknown (HELO ?192.168.11.2?) (219.61.40.10) by dns.tpf.co.jp with SMTP; 26 Apr 2006 21:58:15 +0900 Message-ID: <444F6E66.4090604@tpf.co.jp> Date: Wed, 26 Apr 2006 21:58:14 +0900 From: Hiroshi Inoue User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: ja, en-us, en MIME-Version: 1.0 To: Michael GUIARD CC: Ludek Finstrle , pgsql-odbc@postgresql.org Subject: Re: odbc 8.01.02 8190 bytes limitation References: <011001c6679d$c15d4740$027ba8c0@NSTMike> <20060425103703.GH23256@soptik.pzkagis.cz> <012301c66906$6c711b70$027ba8c0@NSTMike> In-Reply-To: <012301c66906$6c711b70$027ba8c0@NSTMike> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200604/102 X-Sequence-Number: 7629 Michael GUIARD wrote: > Hi Luf ! > thanks for your answer. > > I will give you some precisions : I work with ado and odbc driver to > connect. For insertion in database I use variant types. For array my > variant is defined as this : VT_ARRAY|VT_UI1 > > I tried the ODBC driver 7.03.02.60, I got the following errors : > - connection with default settings (maxLongVarChar = 8190) : > . less than 8k insertion : ERROR during field affectation : > "Multiple-step operation generated errors. Check each status value" > . less than 16k insertion : idem > ... idem > - connection with maxLongVarChar = 16382 : > . less than 8k insertion : idem as above > ... idem > > With the ODBC driver 8.01.02.00, I got the following errors : > - conenction with default settings : maxLongVarChar = 8190 > . less than 8k insertion : OK ! > . less than 16k insertion : ERROR during RecordSet update : > Microsoft cursor engine : data provider or other service returned an > E_FAIL status. > ... idem as 16k insertion > - connection with maxLongVarChar = 16382 : > . less than 8k : OK ! > . less than 16k : OK ! > . more than 16k : ERROR during RecordSet update : Microsoft cursor > engine : data provider or other service returned an E_FAIL status. > - connection with maxLongVarChar = 32768 : > . less than 8k : ERROR during RecordSet update : type "lo" does not > exist > ... always the same error > > After to have inserted data of 8k with ODBC 8.01.02, if I tried to > connect with ODBC 7.03.02.60 and retrieve the data, I have no errors. > But if I try to insert new data, I have always the error : type "lo" > does not exist ! Please turn on the ByteaAsLongVarchar option. regards, Hiroshi Inoue