Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UnVJj-0005sg-Ch for pgsql-odbc@arkaria.postgresql.org; Fri, 14 Jun 2013 14:49:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UnVJi-0001c6-Sl for pgsql-odbc@arkaria.postgresql.org; Fri, 14 Jun 2013 14:49:30 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UnVJi-0001c1-9S for pgsql-odbc@postgresql.org; Fri, 14 Jun 2013 14:49:30 +0000 Received: from vserver0403.onit4u.de ([213.133.112.9]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UnVJf-0008OD-DJ for pgsql-odbc@postgresql.org; Fri, 14 Jun 2013 14:49:29 +0000 X-PDA-ORIGIN: vserver0403.onit4u.de Received: (qmail 4451 invoked from network); 14 Jun 2013 14:49:17 -0000 Received: by simscan 1.4.0 ppid: 4438, pid: 4448, t: 0.2209s scanners: clamav: 0.97.7/m:54/d:17351 Received: from unknown (HELO ?192.168.10.102?) (Josef.Springer@joops.com@88.64.4.118) by vserver0403.onit4u.de with SMTP; 14 Jun 2013 14:49:17 -0000 Message-ID: <51BB2D83.5080909@joops.com> Date: Fri, 14 Jun 2013 16:49:39 +0200 From: Josef Springer User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: Hiroshi Inoue CC: pgsql-odbc@postgresql.org Subject: Re: ADO-Error when inserting row with text column with large text References: <51BABF72.2090107@joops.com> <51BB23B1.2030905@tpf.co.jp> In-Reply-To: <51BB23B1.2030905@tpf.co.jp> Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 1.5 (+) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org Hi Hiroshi,

thanks for your hint.
But where to change *MaxLongVarcharSize* ?
I open the recordset with
Open( "select * from table", activeConnection: "Driver={PostgreSQL Unicode};Server=localhost;Uid=<uid>;Pwd=<pwd>;Database=<database>" )
I do not know where to give this option. In an ODBC-Setting, there ist the possibility to define *MaxLongVarcharSize*, but i am using the driver by gibving its systemname.

Thanks for your hints !

Josef Springer

On 14.06.2013 16:07, Hiroshi Inoue wrote:
Hi Josef,

(2013/06/14 16:00), Josef Springer wrote:
Hello,

i am using
- PostgreSQL 8.2.5
- ODBC: PostgreSQL Unicode 8.02.04.0

When i am inserting via the ADO-driver a row with column text with
textsize about 10000, i get the ado error 0x80004005.
Inserting the same row with the SQL-editor in pgAdmin III works fine.

The ado details:
Using cursorLocation = adUseClient
Using lockType = adLockBatchOptimistic
recordset editNew ... putting column values ... recordset addNew,
recordSet updateBatch (thows the ado error)

Has the ADO-diver any limitation ?
Thanks for any help !

Please try to increase *MaxLongVarcharSize*.

regards,
Hiroshi Inoue