From: Josef Springer <Josef.Springer@joops.com>
To: Hiroshi Inoue <inoue@tpf.co.jp>
Cc: pgsql-odbc@postgresql.org
Subject: Re: ADO-Error when inserting row with text column with large text
Date: Fri, 14 Jun 2013 16:49:39 +0200
Message-ID: <51BB2D83.5080909@joops.com> (raw)
In-Reply-To: <51BB23B1.2030905@tpf.co.jp>
References: <dktb0r$85d$1@news.hub.org>
<51BABF72.2090107@joops.com>
<51BB23B1.2030905@tpf.co.jp>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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=<uid>;Pwd=<pwd>;Database=<database>"
)</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.2030905@tpf.co.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>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: Josef.Springer@joops.com, inoue@tpf.co.jp
Subject: Re: ADO-Error when inserting row with text column with large text
In-Reply-To: <51BB2D83.5080909@joops.com>
References: <dktb0r$85d$1@news.hub.org> <51BABF72.2090107@joops.com> <51BB23B1.2030905@tpf.co.jp> <51BB2D83.5080909@joops.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox