pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vadim Nasardinov <vadimn@redhat.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: UPDATE with database name  alias
Date: Tue, 20 Sep 2005 08:57:50 -0400
Message-ID: <200509200857.50591.vadimn@redhat.com> (raw)
In-Reply-To: <Pine.BSO.4.62.0509191743560.15690@leary.csoft.net>
References: <200509191949.j8JJnrYl002758@www.commandprompt.com>
	<3703.69.79.131.31.1127162820.squirrel@www.sayago.info>
	<Pine.BSO.4.62.0509191743560.15690@leary.csoft.net>

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



view thread (9+ messages)

Message-ID: <200509200857.50591.vadimn@redhat.com>
Permalink:  ../200509200857.50591.vadimn@redhat.com/
Also on:    postgresql.org/message-id/200509200857.50591.vadimn@redhat.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: vadimn@redhat.com
  Subject: Re: UPDATE with database name  alias
  In-Reply-To: <200509200857.50591.vadimn@redhat.com>
  References: <200509191949.j8JJnrYl002758@www.commandprompt.com> <3703.69.79.131.31.1127162820.squirrel@www.sayago.info> <Pine.BSO.4.62.0509191743560.15690@leary.csoft.net> <200509200857.50591.vadimn@redhat.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox