From: Mikhail Umorin <mikeumo@onebox.com>
To: Inoue@tpf.co.jp
To: pgsql-odbc@postgresql.org
Subject: Re: Delphi7, ADO, ODBC and PostgreSQL connection problems:
Date: Fri, 19 Sep 2003 10:56:41 -0400
Message-ID: <B0009862056@vljcms04.ucmretail.internal.callsciences.com> (raw)
Hiroshi --
it's in the connect string (below) : "... UseDeclareFetch=0;...UpdatableCursors=1;..." and I had those options checked/unchecked in the driver settings as well through Control Panel. What do those settings mean? why are they important?
thanks,
--
Mikhail Umorin
mikeumo@onebox.com
-----Original Message-----
From: Hiroshi Inoue <Inoue@tpf.co.jp>
Sent: Fri, 19 Sep 2003 19:12:41 +0900
To: Mikhail Umorin <mikeumo@onebox.com>; noelrv@nipahut.org; rncombs@covad.net;pgsql-odbc@postgresql.org
Subject: Re: [ODBC] Delphi7, ADO, ODBC and PostgreSQL connection problems:
Hiroshi Inoue wrote:
>
> Mikhail Umorin wrote:
> >
> > Thanks everyone for helping me! Especially, Hiroshi, Noel and Richard!
> >
> > Following Noel's suggestion I installed pgAdmin (II, 1.6.0). It connected fine and I could see values in the tables without any other changes to client and server PCs. So, I decided to try the same connection string that pgAdmin uses (I could conveniently cut and paste it from pgAdmin window: thanks, pgAdmin!) - and it worked! The string was:
> > Provider=MSDASQL.1;Extended Properties="DRIVER={PostgreSQL};DATABASE=lara;
> > SERVER=192.168.1.2;PORT=5432;UID=lara;PWD=********;
> > ReadOnly=0;Protocol=6.4;FakeOidIndex=0;ShowOidColumn=0;
> > RowVersioning=0;ShowSystemTables=0;ConnSettings=;Fetch=100;
> > Socket=4096;UnknownSizes=0;MaxVarcharSize=254;
> > MaxLongVarcharSize=65536;Debug=0;CommLog=0;Optimizer=1;Ksqo=1;
> > UseDeclareFetch=0;TextAsLongVarchar=1;UnknownsAsLongVarchar=0;
> > BoolsAsChar=1;Parse=0;CancelAsFreeStmt=0;
> > ExtraSysTablePrefixes=dd_;LFConversion=1;UpdatableCursors=1;
> > DisallowPremature=0;TrueIsMinus1=0;BI=0;ByteaAsLongVarBinary=0;
> > UseServerSidePrepare=0"
> >
> > I think the problem was that when I specified a file DSN or
> > would build a connection string using Delphi's tools it was
> > not handled properly or constructed properly by Delphi's
> > TADOConnection object. So, what OLE DB driver for ODBC would
> > get was partially illegal; so, the driver would connect but
> > would not communicate beyond the handshake.
> >
> > Now, the driver's log contains no errors (so, there was
> > something serious there, Hiroshi).
>
> I'm still suspecting that the *use declare/fetch option*
> is turned on. Could you try to add "UseDeclareFetch=0" option
> to your connection string ?
Please also try *Updatablecursors=1* option.
regards,
Hiroshi Inoue
http://www.geocities.jp/inocchichichi/psqlodbc/
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: mikeumo@onebox.com, Inoue@tpf.co.jp
Subject: Re: Delphi7, ADO, ODBC and PostgreSQL connection problems:
In-Reply-To: <B0009862056@vljcms04.ucmretail.internal.callsciences.com>
References: <B0009862056@vljcms04.ucmretail.internal.callsciences.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