Re: ADO-Error when inserting row with text column with large text

From: Josef Springer <Josef(dot)Springer(at)joops(dot)com>
To: Hiroshi Inoue <inoue(at)tpf(dot)co(dot)jp>
Cc: pgsql-odbc(at)postgresql(dot)org
Subject: Re: ADO-Error when inserting row with text column with large text
Date: 2013-06-14 14:49:39
Message-ID: 51BB2D83.5080909@joops.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Hi Hiroshi,<br>
<br>
thanks for your hint. <br>
But where to change *MaxLongVarcharSize* ?<br>
I open the recordset with <br>
<i>Open( "select * from table", activeConnection:
"Driver={PostgreSQL
Unicode};Server=localhost;Uid=&lt;uid&gt;;Pwd=&lt;pwd&gt;;Database=&lt;database&gt;"
)</i><br>
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.<br>
<br>
Thanks for your hints !<br>
<br>
Josef Springer<br>
<br>
On 14.06.2013 16:07, Hiroshi Inoue wrote:
<blockquote cite="mid:51BB23B1(dot)2030905(at)tpf(dot)co(dot)jp" type="cite">Hi
Josef,
<br>
<br>
(2013/06/14 16:00), Josef Springer wrote:
<br>
<blockquote type="cite">Hello,
<br>
<br>
i am using
<br>
- PostgreSQL 8.2.5
<br>
- ODBC: PostgreSQL Unicode 8.02.04.0
<br>
<br>
When i am inserting via the ADO-driver a row with column text
with
<br>
textsize about 10000, i get the ado error 0x80004005.
<br>
Inserting the same row with the SQL-editor in pgAdmin III works
fine.
<br>
<br>
The ado details:
<br>
Using cursorLocation = adUseClient
<br>
Using lockType = adLockBatchOptimistic
<br>
recordset editNew ... putting column values ... recordset
addNew,
<br>
recordSet updateBatch (thows the ado error)
<br>
<br>
Has the ADO-diver any limitation ?
<br>
Thanks for any help !
<br>
</blockquote>
<br>
Please try to increase *MaxLongVarcharSize*.
<br>
<br>
regards,
<br>
Hiroshi Inoue
<br>
<br>
<br>
<br>
</blockquote>
<br>
<div class="moz-signature"><br>
</div>
</body>
</html>

Attachment Content-Type Size
unknown_filename text/html 2.2 KB

In response to

Responses

Browse pgsql-odbc by date

  From Date Subject
Next Message Hiroshi Inoue 2013-06-14 15:13:48 Re: ADO-Error when inserting row with text column with large text
Previous Message Hiroshi Inoue 2013-06-14 14:07:45 Re: ADO-Error when inserting row with text column with large text