X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id AD9BBD914E for ; Tue, 20 Sep 2005 09:57:08 -0300 (ADT) 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 37263-08 for ; Tue, 20 Sep 2005 12:57:03 +0000 (GMT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by svr1.postgresql.org (Postfix) with ESMTP id 898E5D910E for ; Tue, 20 Sep 2005 09:57:04 -0300 (ADT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j8KCv8Yd009813 for ; Tue, 20 Sep 2005 08:57:08 -0400 Received: from mail.boston.redhat.com (mail.boston.redhat.com [172.16.76.12]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j8KCv8V10411 for ; Tue, 20 Sep 2005 08:57:08 -0400 Received: from vpn83-138.boston.redhat.com (vpn83-138.boston.redhat.com [172.16.83.138]) by mail.boston.redhat.com (8.12.8/8.12.8) with ESMTP id j8KCv748032194 for ; Tue, 20 Sep 2005 08:57:07 -0400 From: Vadim Nasardinov Organization: Red Hat (Westford) To: pgsql-jdbc@postgresql.org Subject: Re: UPDATE with database name alias Date: Tue, 20 Sep 2005 08:57:50 -0400 User-Agent: KMail/1.8.2 References: <200509191949.j8JJnrYl002758@www.commandprompt.com> <3703.69.79.131.31.1127162820.squirrel@www.sayago.info> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200509200857.50591.vadimn@redhat.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.01 required=5 tests=[AWL=0.010] X-Spam-Level: X-Archive-Number: 200509/79 X-Sequence-Number: 13864 On Monday 19 September 2005 18:46, Kris Jurka wrote: > > JDeveloper use alias to UPDATE, an dthen, what can I do? > > > > Your only option would be to ajdust the postgresql backend grammar > to allow an alias. In practical terms, you're right. In theory, this may also be addressed by using a wrapper JDBC driver like P6Spy (but not as buggy) that would sit between the application and the real PostgreSQL JDBC driver. The wrapper driver would have the opportunity to rewrite UPDATE statements in a spec-compliant manner before passing them on to the real driver. http://sourceforge.net/projects/p6spy/ http://www.google.com/search?q=antlr+SQL+grammar http://www.google.com/search?q=JavaCC+SQL+grammar