X-Original-To: pgsql-odbc@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id D3F38475AE5 for ; Tue, 4 Feb 2003 03:46:21 -0500 (EST) Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by postgresql.org (Postfix) with SMTP id BB4AD475CE5 for ; Tue, 4 Feb 2003 03:45:49 -0500 (EST) Received: (qmail 31517 invoked from network); 4 Feb 2003 08:45:50 -0000 Received: from unknown (HELO viscomail.tpf.co.jp) (100.0.0.108) by sd2.tpf-fw-c.co.jp with SMTP; 4 Feb 2003 08:45:50 -0000 Received: from tpf.co.jp (3dgateway1 [126.0.1.60]) by viscomail.tpf.co.jp (8.8.8+Sun/8.8.8) with ESMTP id RAA03615; Tue, 4 Feb 2003 17:45:49 +0900 (JST) Message-ID: <3E3F7E52.93D93C4B@tpf.co.jp> Date: Tue, 04 Feb 2003 17:48:18 +0900 From: Hiroshi Inoue X-Mailer: Mozilla 4.73 [ja] (Windows NT 5.0; U) X-Accept-Language: ja MIME-Version: 1.0 To: Ocke Janssen Cc: pgsql-odbc@postgresql.org Subject: Re: OpenOffice and PostgreSQL: query with inner join References: <3E3E7536.9060702@sun.com> Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/13 X-Sequence-Number: 2631 Ocke Janssen wrote: > > Hello, > > my name is Ocke Janssen. I'm a developer of the database component in > OpenOffice and I encounter a problem (BUG) we have when executing a > query which contains two tables with a primary key. The statement looks > like this: > > SELECT "test1"."name", "test1_1"."name" FROM "test1" "test1", "test1" > "test1_1" WHERE ( "test1"."id" = "test1_1"."id" ) > > When setting the statement attributes to KeysetDriven, I get the error > message that CTID is ambiguous. As far as I could see in the moment the > problem is in the fucntion inner_process_tokens in file convert.c where > CTID is added to the statemement. Is this problem known? Maybe I found the cause. Please try the snapshot dll at http://www.geocities.jp/inocchichichi/psqlodbc/ . Thanks. Hiroshi Inoue http://www.geocities.jp/inocchichichi/psqlodbc/