Re: [JDBC] Returning oid or primary key

2001-05-03 Thread Bruce Momjian

 However, _if_ RETURNING is going to be in the standard SQL for the
 next release, _and_ there are plans to update the jdbc driver to take
 advantage of that in the callable statement, as well, then it makes
 more sense _not_ to add my patch that implements the 'overloading' of
 the return value in the jdbc driver.
 
 I guess the issue is the ability to return the primary key from an
 inserted row, for cases that it's auto-generated, such as using the
 serial type.

Certainly the portable solution is to get RETURNING into the backend so
you can decide what you want to return.

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

---(end of broadcast)---
TIP 4: Don't 'kill -9' the postmaster



Re: [JDBC] Returning oid or primary key

2001-05-03 Thread Ned Wolpert

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

 From: Bruce Momjian [EMAIL PROTECTED]
 Date: Thu, 3 May 2001 13:42:23 -0400 (EDT)
 
 Certainly the portable solution is to get RETURNING into the backend so
 you can decide what you want to return.

I agree.  Is that currently planned for the next release?

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: Public key at http://www.keyserver.net

iD8DBQE68ZjfiysnOdCML0URAnAkAJ4h2r21+uvdZzw14Prmy8SgvqJs2QCeMMN8
YpwRmYJkfJdzZnkpqTLfI3Q=
=PqCG
-END PGP SIGNATURE-

-- 
Virtually, 
Ned Wolpert [EMAIL PROTECTED]

D08C2F45:  28E7 56CB 58AC C622 5A51  3C42 8B2B 2739 D08C 2F45 


---(end of broadcast)---
TIP 6: Have you searched our list archives?

http://www.postgresql.org/search.mpl