Re: updatable (J2EE) resultsets

From: Kris Jurka <books(at)ejurka(dot)com>
To: Dave Cramer <Dave(at)micro-automation(dot)net>
Cc: Fernando Nasser <fnasser(at)redhat(dot)com>, Gerlits András <gerlits(at)neotek(dot)hu>, "pgsql-jdbc(at)postgresql(dot)org" <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: updatable (J2EE) resultsets
Date: 2002-12-23 07:20:34
Message-ID: Pine.LNX.4.33.0212230218480.22565-200000@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc


I have not seen this patch applied. Was it rejected for some reason?

Kris Jurka

On Wed, 11 Dec 2002, Kris Jurka wrote:

>
> The following adds support for updateable ResultSets with a mixed case
> table name and column names.
>
> What could really use some work is the parseQuery method in
> org.postgresql.jdbc2.AbstractJdbc2ResultSet. When determining if a
> ResultSet can be updated it does not check that all colums of the result
> set aren't derived columns. The check to make sure it is a single table
> is not particularly good. It fails on things like:
>
> SELECT CURRENT_TIMESTAMP;
> SELECT a AS from FROM t;
> SELECT a FROM t1 LEFT JOIN t2 ON (t1.id=t2.id);
> SELECT a FROM t1 UNION SELECT a FROM t2;
>
> I'm not sure how much this can be improved without building a full blown
> parser into the driver.
>
> On Tue, 10 Dec 2002, Fernando Nasser wrote:
>
> > Dave Cramer wrote:
> > > 1) why do you want to use mixed case columns. Postgres supports them but
> > > not very well.
> > >
> >
> > Dave,
> >
> > Can you be more specific? Don't the PostgreSQL delimited identifiers do
> > the trick?
> >
> > We are already talking about a 7.4 release. is there something that
> > could be done to improve this?
> >
> > Regards,
> > Fernando
> >
> >
> >
> > --
> > Fernando Nasser
> > Red Hat Canada Ltd. E-Mail: fnasser(at)redhat(dot)com
> > 2323 Yonge Street, Suite #300
> > Toronto, Ontario M4P 2C9
> >
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 6: Have you searched our list archives?
> >
> > http://archives.postgresql.org
> >
>

Attachment Content-Type Size
updateablers_case.patch text/plain 2.3 KB

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Thomas Roemer 2002-12-23 07:22:07 JDBC Error
Previous Message Nic Ferrier 2002-12-22 23:00:48 Re: Stored procedures/functions that can return recordsets...