Re: [jason@netspade.com: DatabaseMetaData.java.diff]

Lists: pgsql-jdbc
From: Jason Davies <jason(at)netspade(dot)com>
To: Dave Cramer <dave(at)fastcrypt(dot)com>
Cc: PostgreSQL JDBC <pgsql-jdbc(at)postgresql(dot)org>
Subject: [jason@netspade.com: DatabaseMetaData.java.diff]
Date: 2001-11-02 22:15:45
Message-ID: 20011102161545.A16328@netspade.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-jdbc


Sorry, I forgot to attach the file. How embarrassing :)

--
Jason Davies

jason(at)netspade(dot)com

Attachment Content-Type Size
DatabaseMetaData.java.diff text/plain 3.6 KB

From: "Dave Cramer" <Dave(at)micro-automation(dot)net>
To: "'Jason Davies'" <jason(at)netspade(dot)com>
Cc: "'PostgreSQL JDBC'" <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: [jason@netspade.com: DatabaseMetaData.java.diff]
Date: 2001-11-03 00:04:16
Message-ID: 02e701c163fb$14914390$c201a8c0@inspiron
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-jdbc

Jason,

The current sources should be patched as per your patch. I also fixed
jdbc1 so it would compile

Dave

-----Original Message-----
From: pgsql-jdbc-owner(at)postgresql(dot)org
[mailto:pgsql-jdbc-owner(at)postgresql(dot)org] On Behalf Of Jason Davies
Sent: November 2, 2001 5:16 PM
To: Dave Cramer
Cc: PostgreSQL JDBC
Subject: [JDBC] [jason(at)netspade(dot)com: DatabaseMetaData.java.diff]

Sorry, I forgot to attach the file. How embarrassing :)

--
Jason Davies

jason(at)netspade(dot)com


From: Jason Davies <jason(at)netspade(dot)com>
To: Dave Cramer <Dave(at)micro-automation(dot)net>
Cc: PostgreSQL JDBC <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: [jason@netspade.com: DatabaseMetaData.java.diff]
Date: 2001-11-03 12:54:40
Message-ID: 20011103065440.A18365@netspade.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-jdbc

Dave,

Here is yet another patch for DatabaseMetaData which does several things:
a) Currently an extra key is returned in both getExportedKeys() and getImportedKeys(). So a foreign key relationship, duplicate keys are returned. This has been fixed.
b) PK_NAME is now returned.
c) The whole SQL query has been optimized (no more ugly inner selects).
d) The getExportedKeys() and getImportedKeys() implementation has been put into a single getImportedExportedKeys() to save duplcating the code.
e) KEY_SEQ is now also returned.

There is however one problem to do with multiple foreign key columns. Should they be returned as a single row, separated by commas? Or returned in separate rows? By multiple foreign key columns I mean, "alter table ptable add constraint ptable_fkey foreign key (pcol1, pcol2) references ftable (fcol1, fcol2)".

I think returning separate rows is the most correct way to do it, assuming the SQL statement above is equivalent to 2 separate fkeys.

Any comments are welcome,

Jason

On Fri, Nov 02, 2001 at 07:04:16PM -0500, Dave Cramer wrote:
> Jason,
>
> The current sources should be patched as per your patch. I also fixed
> jdbc1 so it would compile
>
> Dave
>
> -----Original Message-----
> From: pgsql-jdbc-owner(at)postgresql(dot)org
> [mailto:pgsql-jdbc-owner(at)postgresql(dot)org] On Behalf Of Jason Davies
> Sent: November 2, 2001 5:16 PM
> To: Dave Cramer
> Cc: PostgreSQL JDBC
> Subject: [JDBC] [jason(at)netspade(dot)com: DatabaseMetaData.java.diff]
>
>
>
> Sorry, I forgot to attach the file. How embarrassing :)
>
> --
> Jason Davies
>
> jason(at)netspade(dot)com
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)

--
Jason Davies

jason(at)netspade(dot)com

Attachment Content-Type Size
DatabaseMetaData.diff text/plain 27.7 KB

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Jason Davies <jason(at)netspade(dot)com>
Cc: Dave Cramer <Dave(at)micro-automation(dot)net>, PostgreSQL JDBC <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: [jason@netspade.com: DatabaseMetaData.java.diff]
Date: 2002-02-22 19:52:30
Message-ID: 200202221952.g1MJqUf12368@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-jdbc


Your patch has been added to the PostgreSQL unapplied patches list at:

http://candle.pha.pa.us/cgi-bin/pgpatches

I will try to apply it within the next 48 hours. JDBC maintainers will
review.

---------------------------------------------------------------------------

Jason Davies wrote:

Checking application/pgp-signature: FAILURE
-- Start of PGP signed section.
> Dave,
>
> Here is yet another patch for DatabaseMetaData which does several things:
> a) Currently an extra key is returned in both getExportedKeys() and getImportedKeys(). So a foreign key relationship, duplicate keys are returned. This has been fixed.
> b) PK_NAME is now returned.
> c) The whole SQL query has been optimized (no more ugly inner selects).
> d) The getExportedKeys() and getImportedKeys() implementation has been put into a single getImportedExportedKeys() to save duplcating the code.
> e) KEY_SEQ is now also returned.
>
> There is however one problem to do with multiple foreign key columns. Should they be returned as a single row, separated by commas? Or returned in separate rows? By multiple foreign key columns I mean, "alter table ptable add constraint ptable_fkey foreign key (pcol1, pcol2) references ftable (fcol1, fcol2)".
>
> I think returning separate rows is the most correct way to do it, assuming the SQL statement above is equivalent to 2 separate fkeys.
>
> Any comments are welcome,
>
> Jason
>
> On Fri, Nov 02, 2001 at 07:04:16PM -0500, Dave Cramer wrote:
> > Jason,
> >
> > The current sources should be patched as per your patch. I also fixed
> > jdbc1 so it would compile
> >
> > Dave
> >
> > -----Original Message-----
> > From: pgsql-jdbc-owner(at)postgresql(dot)org
> > [mailto:pgsql-jdbc-owner(at)postgresql(dot)org] On Behalf Of Jason Davies
> > Sent: November 2, 2001 5:16 PM
> > To: Dave Cramer
> > Cc: PostgreSQL JDBC
> > Subject: [JDBC] [jason(at)netspade(dot)com: DatabaseMetaData.java.diff]
> >
> >
> >
> > Sorry, I forgot to attach the file. How embarrassing :)
> >
> > --
> > Jason Davies
> >
> > jason(at)netspade(dot)com
> >
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 2: you can get off all lists at once with the unregister command
> > (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
>
> --
> Jason Davies
>
> jason(at)netspade(dot)com

[ Attachment, skipping... ]
-- End of PGP section, PGP failed!

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026


From: Jason Davies <jason(at)netspade(dot)com>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: PostgreSQL JDBC <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: [jason@netspade.com: DatabaseMetaData.java.diff]
Date: 2002-02-22 21:55:02
Message-ID: 20020222155502.A17065@netspade.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-jdbc

My patch has already been applied, I believe.

--Jase.

On Fri, Feb 22, 2002 at 02:52:30PM -0500, Bruce Momjian wrote:
>
> Your patch has been added to the PostgreSQL unapplied patches list at:
>
> http://candle.pha.pa.us/cgi-bin/pgpatches
>
> I will try to apply it within the next 48 hours. JDBC maintainers will
> review.
>
>
> ---------------------------------------------------------------------------
>
>
> Jason Davies wrote:
>
> Checking application/pgp-signature: FAILURE
> -- Start of PGP signed section.
> > Dave,
> >
> > Here is yet another patch for DatabaseMetaData which does several things:
> > a) Currently an extra key is returned in both getExportedKeys() and getImportedKeys(). So a foreign key relationship, duplicate keys are returned. This has been fixed.
> > b) PK_NAME is now returned.
> > c) The whole SQL query has been optimized (no more ugly inner selects).
> > d) The getExportedKeys() and getImportedKeys() implementation has been put into a single getImportedExportedKeys() to save duplcating the code.
> > e) KEY_SEQ is now also returned.
> >
> > There is however one problem to do with multiple foreign key columns. Should they be returned as a single row, separated by commas? Or returned in separate rows? By multiple foreign key columns I mean, "alter table ptable add constraint ptable_fkey foreign key (pcol1, pcol2) references ftable (fcol1, fcol2)".
> >
> > I think returning separate rows is the most correct way to do it, assuming the SQL statement above is equivalent to 2 separate fkeys.
> >
> > Any comments are welcome,
> >
> > Jason
> >
> > On Fri, Nov 02, 2001 at 07:04:16PM -0500, Dave Cramer wrote:
> > > Jason,
> > >
> > > The current sources should be patched as per your patch. I also fixed
> > > jdbc1 so it would compile
> > >
> > > Dave
> > >
> > > -----Original Message-----
> > > From: pgsql-jdbc-owner(at)postgresql(dot)org
> > > [mailto:pgsql-jdbc-owner(at)postgresql(dot)org] On Behalf Of Jason Davies
> > > Sent: November 2, 2001 5:16 PM
> > > To: Dave Cramer
> > > Cc: PostgreSQL JDBC
> > > Subject: [JDBC] [jason(at)netspade(dot)com: DatabaseMetaData.java.diff]
> > >
> > >
> > >
> > > Sorry, I forgot to attach the file. How embarrassing :)
> > >
> > > --
> > > Jason Davies
> > >
> > > jason(at)netspade(dot)com
> > >
> > >
> > > ---------------------------(end of broadcast)---------------------------
> > > TIP 2: you can get off all lists at once with the unregister command
> > > (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
> >
> > --
> > Jason Davies
> >
> > jason(at)netspade(dot)com
>
> [ Attachment, skipping... ]
> -- End of PGP section, PGP failed!
>
> --
> Bruce Momjian | http://candle.pha.pa.us
> pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
> + If your life is a hard drive, | 830 Blythe Avenue
> + Christ can be your backup. | Drexel Hill, Pennsylvania 19026

--
Jason Davies

jason(at)netspade(dot)com


From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Jason Davies <jason(at)netspade(dot)com>
Cc: PostgreSQL JDBC <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: [jason@netspade.com: DatabaseMetaData.java.diff]
Date: 2002-02-22 22:42:53
Message-ID: 200202222242.g1MMgrN29357@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-jdbc


Oh, sorry, I missed that. Patch removed. Thanks. Sorry.

---------------------------------------------------------------------------

Jason Davies wrote:
> My patch has already been applied, I believe.
>
> --Jase.
>
> On Fri, Feb 22, 2002 at 02:52:30PM -0500, Bruce Momjian wrote:
> >
> > Your patch has been added to the PostgreSQL unapplied patches list at:
> >
> > http://candle.pha.pa.us/cgi-bin/pgpatches
> >
> > I will try to apply it within the next 48 hours. JDBC maintainers will
> > review.
> >
> >
> > ---------------------------------------------------------------------------
> >
> >
> > Jason Davies wrote:
> >
> > Checking application/pgp-signature: FAILURE
> > -- Start of PGP signed section.
> > > Dave,
> > >
> > > Here is yet another patch for DatabaseMetaData which does several things:
> > > a) Currently an extra key is returned in both getExportedKeys() and getImportedKeys(). So a foreign key relationship, duplicate keys are returned. This has been fixed.
> > > b) PK_NAME is now returned.
> > > c) The whole SQL query has been optimized (no more ugly inner selects).
> > > d) The getExportedKeys() and getImportedKeys() implementation has been put into a single getImportedExportedKeys() to save duplcating the code.
> > > e) KEY_SEQ is now also returned.
> > >
> > > There is however one problem to do with multiple foreign key columns. Should they be returned as a single row, separated by commas? Or returned in separate rows? By multiple foreign key columns I mean, "alter table ptable add constraint ptable_fkey foreign key (pcol1, pcol2) references ftable (fcol1, fcol2)".
> > >
> > > I think returning separate rows is the most correct way to do it, assuming the SQL statement above is equivalent to 2 separate fkeys.
> > >
> > > Any comments are welcome,
> > >
> > > Jason
> > >
> > > On Fri, Nov 02, 2001 at 07:04:16PM -0500, Dave Cramer wrote:
> > > > Jason,
> > > >
> > > > The current sources should be patched as per your patch. I also fixed
> > > > jdbc1 so it would compile
> > > >
> > > > Dave
> > > >
> > > > -----Original Message-----
> > > > From: pgsql-jdbc-owner(at)postgresql(dot)org
> > > > [mailto:pgsql-jdbc-owner(at)postgresql(dot)org] On Behalf Of Jason Davies
> > > > Sent: November 2, 2001 5:16 PM
> > > > To: Dave Cramer
> > > > Cc: PostgreSQL JDBC
> > > > Subject: [JDBC] [jason(at)netspade(dot)com: DatabaseMetaData.java.diff]
> > > >
> > > >
> > > >
> > > > Sorry, I forgot to attach the file. How embarrassing :)
> > > >
> > > > --
> > > > Jason Davies
> > > >
> > > > jason(at)netspade(dot)com
> > > >
> > > >
> > > > ---------------------------(end of broadcast)---------------------------
> > > > TIP 2: you can get off all lists at once with the unregister command
> > > > (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
> > >
> > > --
> > > Jason Davies
> > >
> > > jason(at)netspade(dot)com
> >
> > [ Attachment, skipping... ]
> > -- End of PGP section, PGP failed!
> >
> > --
> > Bruce Momjian | http://candle.pha.pa.us
> > pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
> > + If your life is a hard drive, | 830 Blythe Avenue
> > + Christ can be your backup. | Drexel Hill, Pennsylvania 19026
>
> --
> Jason Davies
>
> jason(at)netspade(dot)com
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026