X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B481D3A5367 for ; Mon, 22 Nov 2004 20:55:24 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 75157-01 for ; Mon, 22 Nov 2004 20:55:21 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 537EF3A5335 for ; Mon, 22 Nov 2004 20:55:22 +0000 (GMT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.21]) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1CWLCo-0004MF-00; Tue, 23 Nov 2004 09:54:39 +1300 Message-ID: <41A25315.5080108@opencloud.com> Date: Mon, 22 Nov 2004 20:59:01 +0000 From: Oliver Jowett User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Nicolas Modrzyk Cc: c-jdbc@objectweb.org, pgsql-jdbc@postgresql.org, gvp Subject: Re: [c-jdbc] Bug Report References: <200411191402.29957.xavier.moghrabi@inrialpes.fr> <41A22684.3060107@inrialpes.fr> In-Reply-To: <41A22684.3060107@inrialpes.fr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests=LINES_OF_YELLING X-Spam-Level: X-Archive-Number: 200411/176 X-Sequence-Number: 11598 Nicolas Modrzyk wrote: > Hi All, > > Could anyone let us know how to understand the attached query ? > From what I know this is an Orion (java application server) generated > query for postgresql... > > The C-JDBC parsing seems to fail because we can't find a proper FROM > keyword to select the depedencies of the query. > Since this is not seemingly SQL92 standard, can anyone from the > postgresql team give us some information ? I am confused. Are you encountering a C-JDBC problem, a PostgreSQL JDBC driver problem, a PostgreSQL backend query parsing problem, or something else again? Exactly what error or misbehaviour do you see? The query itself does not seem too painful, it is a CREATE TABLE AS with a query part that has lots of UNIONs: CREATE TABLE ... AS SELECT ... FROM ... UNION SELECT ... FROM ... UNION SELECT ... FROM ... [...] -O