From michael@nestor-tech.com Mon Apr 24 18:11:36 2006 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 7B31B11F7DEE for ; Mon, 24 Apr 2006 15:11:36 -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 51929-01-8 for ; Mon, 24 Apr 2006 15:10:51 -0300 (ADT) X-Greylist: delayed 00:18:57.340112 by SQLgrey- Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 36DB011F6C30 for ; Mon, 24 Apr 2006 10:10:05 -0300 (ADT) Received: from smtp5.wanadoo.fr (smtp5.wanadoo.fr [193.252.22.26]) by svr4.postgresql.org (Postfix) with ESMTP id 461205B0239 for ; Mon, 24 Apr 2006 12:51:17 +0000 (GMT) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf0509.wanadoo.fr (SMTP Server) with ESMTP id 6168A1C00232 for ; Mon, 24 Apr 2006 14:51:13 +0200 (CEST) Received: from NSTMike (LNeuilly-152-22-84-5.w193-251.abo.wanadoo.fr [193.251.25.5]) by mwinf0509.wanadoo.fr (SMTP Server) with ESMTP id DBE9B1C0029B for ; Mon, 24 Apr 2006 14:51:12 +0200 (CEST) X-ME-UUID: 20060424125112900.DBE9B1C0029B@mwinf0509.wanadoo.fr Message-ID: <011001c6679d$c15d4740$027ba8c0@NSTMike> Reply-To: "Michael GUIARD" From: "Michael GUIARD" To: Subject: odbc 8.01.02 8190 bytes limitation Date: Mon, 24 Apr 2006 14:51:05 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_010D_01C667AE.8389E2A0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200604/79 X-Sequence-Number: 7606 This is a multi-part message in MIME format. ------=_NextPart_000_010D_01C667AE.8389E2A0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi all ! I use PostgreSQL database via ado (win32). I succeeded in storing/retrieving binary format (bytea) to/from database = (I use it for images). But I am limited to 8190 bytes. Is it a way to disable this limitation ? = I saw that the odbc have a MaxLongVarChar option set to 8190. May be my = problem come from this, but how can I update this option using ado ? I saw many posts about this subject but I did not find the solution - = may be I am too blind today ;) thanks Mike ------=_NextPart_000_010D_01C667AE.8389E2A0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi all !
 
I use PostgreSQL database via ado=20 (win32).
I succeeded in storing/retrieving = binary format=20 (bytea) to/from database (I use it for images).
 
But I am limited to 8190 bytes. Is it a = way to=20 disable this limitation ?
I saw that the odbc have a = MaxLongVarChar option=20 set to 8190. May be my problem come from this, but how can I update this = option=20 using ado ?
 
I saw many posts about this subject but = I did not=20 find the solution - may be I am too blind today ;)
 
thanks
Mike
------=_NextPart_000_010D_01C667AE.8389E2A0-- From luf@pzkagis.cz Tue Apr 25 10:37:41 2006 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 CB46C11F60AE for ; Tue, 25 Apr 2006 07:37:41 -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 81394-01 for ; Tue, 25 Apr 2006 07:37:31 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from smtp.pzkagis.cz (gis6.netbox.cz [83.240.30.214]) by postgresql.org (Postfix) with ESMTP id E74F511F60B0 for ; Tue, 25 Apr 2006 07:37:24 -0300 (ADT) Received: from soptik.pzkagis.cz (localhost.localdomain [127.0.0.1]) by smtp.pzkagis.cz (8.13.1/8.13.1) with ESMTP id k3PAb3ul023952; Tue, 25 Apr 2006 12:37:03 +0200 Received: (from luf@localhost) by soptik.pzkagis.cz (8.13.1/8.13.1/Submit) id k3PAb3tT023951; Tue, 25 Apr 2006 12:37:03 +0200 Date: Tue, 25 Apr 2006 12:37:03 +0200 From: Ludek Finstrle To: Michael GUIARD Cc: pgsql-odbc@postgresql.org Subject: Re: odbc 8.01.02 8190 bytes limitation Message-ID: <20060425103703.GH23256@soptik.pzkagis.cz> References: <011001c6679d$c15d4740$027ba8c0@NSTMike> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <011001c6679d$c15d4740$027ba8c0@NSTMike> User-Agent: Mutt/1.4.1i X-Virus-Scanned: ClamAV 0.88.1/1424/Mon Apr 24 16:39:06 2006 on smtp.pzkagis.cz X-Virus-Status: Clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200604/82 X-Sequence-Number: 7609 > I use PostgreSQL database via ado (win32). > I succeeded in storing/retrieving binary format (bytea) to/from > database (I use it for images). > > But I am limited to 8190 bytes. Is it a way to disable this limitation ? Could you try 07.03.026X version? It's enhanced experimental branch which is now CVS tip and it'll be released as new stable release in relatively short time. IMHO it's more stable version. > I saw that the odbc have a MaxLongVarChar option set to 8190. May be > my problem come from this, but how can I update this option using ado ? There is connection string too in ADO. So specify it in it. > I saw many posts about this subject but I did not find the > solution - may be I am too blind today ;) I don't want waste my time in developing dead branch (which 08.01 is). Regards, Luf From michael@nestor-tech.com Wed Apr 26 07:53:26 2006 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 29EFB11F620E for ; Wed, 26 Apr 2006 04:53:26 -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 59677-02 for ; Wed, 26 Apr 2006 04:53:06 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 8631911F6201 for ; Wed, 26 Apr 2006 04:53:04 -0300 (ADT) Received: from smtp18.wanadoo.fr (smtp18.wanadoo.fr [193.252.22.126]) by svr4.postgresql.org (Postfix) with ESMTP id 870E65B3F6A for ; Wed, 26 Apr 2006 07:53:04 +0000 (GMT) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf1806.wanadoo.fr (SMTP Server) with ESMTP id C03E27000097 for ; Wed, 26 Apr 2006 09:53:00 +0200 (CEST) Received: from NSTMike (LNeuilly-152-22-84-5.w193-251.abo.wanadoo.fr [193.251.25.5]) by mwinf1806.wanadoo.fr (SMTP Server) with ESMTP id 28D1B70000A9; Wed, 26 Apr 2006 09:53:00 +0200 (CEST) X-ME-UUID: 20060426075300167.28D1B70000A9@mwinf1806.wanadoo.fr Message-ID: <012301c66906$6c711b70$027ba8c0@NSTMike> Reply-To: "Michael GUIARD" From: "Michael GUIARD" To: "Ludek Finstrle" Cc: References: <011001c6679d$c15d4740$027ba8c0@NSTMike> <20060425103703.GH23256@soptik.pzkagis.cz> Subject: Re: odbc 8.01.02 8190 bytes limitation Date: Wed, 26 Apr 2006 09:52:51 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200604/100 X-Sequence-Number: 7627 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 ! I am a bit lost with these errors. I am not a database specialist and may be I do not use the good way to insert binary data. I also will try to insert binary data using the ado streams .... thanks for your help Mike ----- Original Message ----- From: "Ludek Finstrle" To: "Michael GUIARD" Cc: Sent: Tuesday, April 25, 2006 12:37 PM Subject: Re: [ODBC] odbc 8.01.02 8190 bytes limitation >> I use PostgreSQL database via ado (win32). >> I succeeded in storing/retrieving binary format (bytea) to/from >> database (I use it for images). >> >> But I am limited to 8190 bytes. Is it a way to disable this limitation ? > > Could you try 07.03.026X version? It's enhanced experimental branch which > is now CVS tip and it'll be released as new stable release in relatively > short time. IMHO it's more stable version. > >> I saw that the odbc have a MaxLongVarChar option set to 8190. May be >> my problem come from this, but how can I update this option using ado ? > > There is connection string too in ADO. So specify it in it. > >> I saw many posts about this subject but I did not find the >> solution - may be I am too blind today ;) > > I don't want waste my time in developing dead branch (which 08.01 is). > > Regards, > > Luf > --------------------------------------------------------------------------------------- > Wanadoo vous informe que cet e-mail a ete controle par l'anti-virus mail. > Aucun virus connu a ce jour par nos services n'a ete detecte. > > > From inoue@tpf.co.jp Wed Apr 26 12:58:39 2006 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 From michael@nestor-tech.com Wed Apr 26 13:52:17 2006 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 2FA2211F60B0 for ; Wed, 26 Apr 2006 10:52:17 -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 16976-06 for ; Wed, 26 Apr 2006 10:51:59 -0300 (ADT) X-Greylist: delayed 05:58:51.157699 by SQLgrey- Received: from smtp18.wanadoo.fr (smtp18.wanadoo.fr [193.252.22.126]) by postgresql.org (Postfix) with ESMTP id 3B82B11F60AE for ; Wed, 26 Apr 2006 10:51:57 -0300 (ADT) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf1809.wanadoo.fr (SMTP Server) with ESMTP id 1A3C8700009E for ; Wed, 26 Apr 2006 15:51:57 +0200 (CEST) Received: from NSTMike (LNeuilly-152-22-84-5.w193-251.abo.wanadoo.fr [193.251.25.5]) by mwinf1809.wanadoo.fr (SMTP Server) with ESMTP id 97E4B7000097; Wed, 26 Apr 2006 15:51:56 +0200 (CEST) X-ME-UUID: 20060426135156622.97E4B7000097@mwinf1809.wanadoo.fr Message-ID: <018201c66938$91133d00$027ba8c0@NSTMike> Reply-To: "Michael GUIARD" From: "Michael GUIARD" To: "Hiroshi Inoue" Cc: References: <011001c6679d$c15d4740$027ba8c0@NSTMike> <20060425103703.GH23256@soptik.pzkagis.cz> <012301c66906$6c711b70$027ba8c0@NSTMike> <444F6E66.4090604@tpf.co.jp> Subject: Re: odbc 8.01.02 8190 bytes limitation Date: Wed, 26 Apr 2006 15:51:46 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.59 tagged_above=0 required=5 tests=AWL, BAYES_00, SPF_HELO_SOFTFAIL, SPF_SOFTFAIL X-Spam-Level: X-Archive-Number: 200604/104 X-Sequence-Number: 7631 Hi Hiroshi, I did not find the ByteaAsLongVarchar option in the odbc driver. But because of your request I searched a bit more and I saw the "byte as lo" option. I tried it and now it works !! GOOOOD :) So I configure the maxLongVarChar as -4 and check the "byte as lo" option, and now I can store/retreive image of more than 16KB ! Thanks a lot for your help !!! :) I tried with the 7.03.02.60 and 8.01.02 drivers. With the 7.03.02xx version the recordset update takes very long time. With the 8.01.02 I have no problems. All is good for me except one thing : how can I set the "byte as lo" option in the odbc connection string ? Mike ----- Original Message ----- From: "Hiroshi Inoue" To: "Michael GUIARD" Cc: "Ludek Finstrle" ; Sent: Wednesday, April 26, 2006 2:58 PM Subject: Re: [ODBC] odbc 8.01.02 8190 bytes limitation > 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 > --------------------------------------------------------------------------------------- > Wanadoo vous informe que cet e-mail a ete controle par l'anti-virus mail. > Aucun virus connu a ce jour par nos services n'a ete detecte. > > > From luf@pzkagis.cz Wed Apr 26 14:03:31 2006 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 28C4E11F620E for ; Wed, 26 Apr 2006 11:03:31 -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 22451-03 for ; Wed, 26 Apr 2006 11:03:11 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from smtp.pzkagis.cz (gis6.netbox.cz [83.240.30.214]) by postgresql.org (Postfix) with ESMTP id 18D8211F6236 for ; Wed, 26 Apr 2006 11:03:08 -0300 (ADT) Received: from soptik.pzkagis.cz (localhost.localdomain [127.0.0.1]) by smtp.pzkagis.cz (8.13.1/8.13.1) with ESMTP id k3QE32P3002864; Wed, 26 Apr 2006 16:03:02 +0200 Received: (from luf@localhost) by soptik.pzkagis.cz (8.13.1/8.13.1/Submit) id k3QE32Fn002863; Wed, 26 Apr 2006 16:03:02 +0200 Date: Wed, 26 Apr 2006 16:03:02 +0200 From: Ludek Finstrle To: Michael GUIARD Cc: pgsql-odbc@postgresql.org Subject: Re: odbc 8.01.02 8190 bytes limitation Message-ID: <20060426140302.GC31244@soptik.pzkagis.cz> References: <011001c6679d$c15d4740$027ba8c0@NSTMike> <20060425103703.GH23256@soptik.pzkagis.cz> <012301c66906$6c711b70$027ba8c0@NSTMike> <444F6E66.4090604@tpf.co.jp> <018201c66938$91133d00$027ba8c0@NSTMike> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <018201c66938$91133d00$027ba8c0@NSTMike> User-Agent: Mutt/1.4.1i X-Virus-Scanned: ClamAV 0.88.1/1425/Tue Apr 25 14:09:41 2006 on smtp.pzkagis.cz X-Virus-Status: Clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200604/105 X-Sequence-Number: 7632 > All is good for me except one thing : how can I set the "byte as lo" option > in the odbc connection string ? Try enable mylog output for Datasource and you can see the connection string in the log output. I don't remember it and this solution is more complex ;-) Regards, Luf