X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id B6A2CD1B50F for ; Fri, 19 Sep 2003 10:11:49 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 10183-04 for ; Fri, 19 Sep 2003 07:11:40 -0300 (ADT) Received: from sd.tpf.co.jp (unknown [210.161.239.34]) by svr1.postgresql.org (Postfix) with SMTP id 9FC02D1B4FE for ; Fri, 19 Sep 2003 07:11:36 -0300 (ADT) Received: (qmail 21062 invoked from network); 19 Sep 2003 19:11:36 +0900 Received: from unknown (HELO viscomail.tpf.co.jp) (100.0.0.108) by sd2.tpf-fw-c.co.jp with SMTP; 19 Sep 2003 19:11:36 +0900 Received: from tpf.co.jp ([126.0.1.65]) by viscomail.tpf.co.jp (8.8.8+Sun/8.8.8) with ESMTP id TAA09117; Fri, 19 Sep 2003 19:11:34 +0900 (JST) Message-ID: <3F6AD699.15A8E5B5@tpf.co.jp> Date: Fri, 19 Sep 2003 19:12:41 +0900 From: Hiroshi Inoue X-Mailer: Mozilla 4.73 [ja] (Windows NT 5.0; U) X-Accept-Language: ja MIME-Version: 1.0 To: Mikhail Umorin , noelrv@nipahut.org, rncombs@covad.net, pgsql-odbc@postgresql.org Subject: Re: Delphi7, ADO, ODBC and PostgreSQL connection problems: References: <3F6A4586.6101F0AE@tpf.co.jp> Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/80 X-Sequence-Number: 3278 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/