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 98174D1B973 for ; Fri, 5 Sep 2003 22:00:31 +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 31669-08 for ; Fri, 5 Sep 2003 19:00:21 -0300 (ADT) Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by svr1.postgresql.org (Postfix) with SMTP id 91FECD1B8FC for ; Fri, 5 Sep 2003 19:00:18 -0300 (ADT) Received: (qmail 22527 invoked from network); 5 Sep 2003 22:00:12 -0000 X-Authentication: inoue was authenticated by sd.tpf.co.jp at 5 Sep 2003 22:00:12 -0000 Received: from unknown (HELO PbgX) (219.61.40.61) by sd.tpf.co.jp with SMTP; 5 Sep 2003 22:00:12 -0000 From: "Hiroshi Inoue" To: "'Gary Faulkner'" Cc: Subject: Re: psqlODBC Bug Report - Issue with Reverse Engineering PostgreSQL Database in Visio 2002 Date: Sat, 6 Sep 2003 07:00:10 +0900 Message-ID: <006f01c373f9$13946890$3d283ddb@PbgX> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0070_01C37444.837D9730" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4510 Importance: Normal In-Reply-To: <000001c37095$9eea5060$6701a8c0@garyflaptop> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.2 tagged_above=0.0 required=5.0 tests=BAYES_30, HTML_50_60, HTML_FONT_COLOR_BLUE, HTML_FONT_FACE_BAD, HTML_FONT_FACE_ODD, IN_REP_TO, ORIGINAL_MESSAGE, RCVD_IN_OSIRUSOFT_COM X-Spam-Level: X-Archive-Number: 200309/29 X-Sequence-Number: 3227 This is a multi-part message in MIME format. ------=_NextPart_000_0070_01C37444.837D9730 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable It's a known psqlodbc's bug. =20 Please try the snapshot dll at http://www.geocities.jp/inocchichichi/psqlodbc/ . =20 regards, Hiroshi Inoue -----Original Message----- From: Gary Faulkner psqlODBC Driver Version: 07.03.0100 PostgreSQL Database Version: 7.3.4 Error message: "Data source client error: State:S1000,Native:7,Origin: ERROR: parser: parse error at or near "pg_catalog" at character 402". Commlog file: C:\psqlodbc_5120.log (attached) ODBC trace log file: Application: Microsoft Visio 2002 SR-1 v10.0.2514 Operating System: Microsoft Windows XP Professional SP1 =20 When I attempt to reverse engineer a PostgreSQL database using Microsoft Visio 2002, and specify that I want "Foreign key" objects to be imported, I receive the following error: "Data source client error: State:S1000,Native:7,Origin: ERROR: parser: parse error at or near "pg_catalog" at character 402". =20 I then enabled logging in the psqlODBC driver setup, and was able to determine the cause of the problem - a missing comma in a generated SQL statement. The actual SQL statement recovered from the log file follows. The missing comma occurs at character position 399, or immediately after the phrase "pg_catalog.pg_namespace pn"... =20 SELECT pt.tgargs, pt.tgnargs, pt.tgdeferrable, pt.tginitdeferred, pp1.proname, pp2.proname, pc.oid, pc1.oid, pc1.relname, pn.nspname FROM pg_catalog.pg_class pc, pg_catalog.pg_proc pp1, pg_catalog.pg_proc pp2, pg_catalog.pg_trigger pt1, pg_catalog.pg_trigger pt2, pg_catalog.pg_proc pp, pg_catalog.pg_trigger pt, pg_catalog.pg_class pc1, pg_catalog.pg_namespace pn pg_catalog.pg_namespace pn1 WHERE pt.tgrelid =3D pc.oid AND pp.oid =3D pt.tgfoid AND pt1.tgconstrrelid =3D pc= .oid AND pp1.oid =3D pt1.tgfoid AND pt2.tgfoid =3D pp2.oid AND pt2.tgconstrrelid= =3D pc.oid AND ((pc.relname=3D'provider') AND (pn1.oid =3D pc.relnamespace) AND (pn1.nspname =3D 'public') AND (pp.proname LIKE '%ins') AND (pp1.proname LI= KE '%upd') AND (pp2.proname LIKE '%del') AND (pt1.tgrelid=3Dpt.tgconstrrelid) = AND (pt1.tgconstrname=3Dpt.tgconstrname) AND (pt2.tgrelid=3Dpt.tgconstrrelid) A= ND (pt2.tgconstrname=3Dpt.tgconstrname) AND (pt.tgconstrrelid=3Dpc1.oid) AND (pc1.relnamespace=3Dpn.oid)) =20 Upon inserting the comma, the copied SQL statement executes fine in a pgAdmin2 SQL execution window. The questions I have are: 1) Is this a psqlODBC bug? 2) Is this a Visio bug? 3) Is there a known fix for this issue? =20 Thanks in advance for any information pertaining to this issue. =20 Gary Faulkner Enterprise Information Solutions garyf@eisolution.com =20 =20 ------=_NextPart_000_0070_01C37444.837D9730 Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable メッセージ
It's a known psqlodbc's bug.
 
Please try the snapshot dll at http://www.geociti= es.jp/inocchichichi/psqlodbc/=20 .
 
regards,
Hiroshi Inoue
-----Original Message-----
From: Gary=20 Faulkner

psqlODBC= Driver=20 Version: 07.03.0100

PostgreS= QL=20 Database Version: 7.3.4

Error=20 message: "Data source = client=20 error: State:S1000,Native:7,Origin: ERROR: parser: parse error at or near= =20 "pg_catalog" at character 402".

Commlog= =20 file: C:\psqlodbc_5120.log=20 (attached)

ODBC tra= ce log=20 file: <sql.log not=20 found>

Applicat= ion: Microsoft=20 Visio 2002 SR-1 v10.0.2514

Operatin= g=20 System: Microsoft Windows XP Profe= ssional=20 SP1

=  

When I attemp= t to=20 reverse engineer a PostgreSQL database using Microsoft Visio 2002, and sp= ecify=20 that I want "Foreign key" objects to be imported, I receive the following= =20 error: "Data source client error: State:S1000,Native:7,Origin: ERROR: par= ser:=20 parse error at or near "pg_catalog" at character 402".

 

I then enable= d=20 logging in the psqlODBC driver setup, and was able to determine the cause= of=20 the problem - a missing comma in a generated SQL statement.  The act= ual=20 SQL statement recovered from the log file follows.  The missing comm= a=20 occurs at character position 399, or immediately after the phrase=20 "pg_catalog.pg_namespace pn"...

 

SELEC= T     =20 pt.tgargs,        pt.tgnargs,=20            =20 pt.tgdeferrable,       pt.tginitdeferred,=20            pp1.proname,= =20            pp2.proname,= =20            pc.oid,=20             pc1.oi= d,=20          pc1.relname,=20            pn.nspname= =20 FROM   pg_catalog.pg_class pc,=20         pg_catalog.pg_proc pp1,=20            =20 pg_catalog.pg_proc pp2,      =20       pg_catalog.pg_trigger pt1,=20          pg_catalog.pg_trigger pt= 2,=20          pg_catalog.pg_proc pp,=20        pg_catalog.pg_trigger pt,=20           pg_catalog.pg_clas= s=20 pc1,        pg_catalog.pg_namespace pn=20          pg_catalog.pg_namespace = pn1=20 WHERE      pt.tgrelid =3D pc.oid AND pp.oid =3D = pt.tgfoid=20 AND pt1.tgconstrrelid =3D pc.oid AND pp1.oid =3D pt1.tgfoid AND pt2.tgfoi= d =3D=20 pp2.oid AND pt2.tgconstrrelid =3D pc.oid AND ((pc.relname=3D'provider') A= ND=20 (pn1.oid =3D pc.relnamespace) AND (pn1.nspname =3D 'public') AND (pp.pron= ame LIKE=20 '%ins') AND (pp1.proname LIKE '%upd') AND (pp2.proname LIKE '%del') AND= =20 (pt1.tgrelid=3Dpt.tgconstrrelid) AND (pt1.tgconstrname=3Dpt.tgconstrname)= AND=20 (pt2.tgrelid=3Dpt.tgconstrrelid) AND (pt2.tgconstrname=3Dpt.tgconstrname)= AND=20 (pt.tgconstrrelid=3Dpc1.oid) AND (pc1.relnamespace=3Dpn.oid))

 

Upon inserting the comma, t= he=20 copied SQL statement executes fine in a pgAdmin2 SQL execution window.&nb= sp;=20 The questions I have are:

1) Is this a psqlODBC=20 bug?

2) Is this a Visio=20 bug?

3) Is there a known fix for= this=20 issue?

 

Thanks in advance for any= =20 information pertaining to this issue.

 

Gary Faulkner=

Enterprise=20 Information Solutions

garyf@eisolution.com=

 

 

------=_NextPart_000_0070_01C37444.837D9730--