pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marcus Andree S. Magalhaes <marcus.magalhaes@vlinfo.com.br>
To: henr-and@dsv.su.se
Cc: johnsw@wardbrook.com
Cc: pgsql-jdbc@postgresql.org
Subject: Re: getGeneratedKeys()
Date: Wed, 31 Dec 2003 06:19:49 -0200 (BRST)
Message-ID: <61203.200.174.148.100.1072858789.squirrel@webmail.webnow.com.br> (raw)
In-Reply-To: <33309.213.89.23.209.1072826327.squirrel@www.dsv.su.se>
References: <3FF1C0EE.4010107@dsv.su.se>
	<Pine.LNX.4.33.0312301523060.5331-100000@leary.csoft.net>
	<32899.213.89.23.209.1072821322.squirrel@www.dsv.su.se>
	<1216.192.168.0.64.1072824461.squirrel@mercury.wardbrook.com>
	<33309.213.89.23.209.1072826327.squirrel@www.dsv.su.se>


Ahhh.... yes.... good and old "multiplatform code compatibility"...

I remember that from '95, when version Beta 2.0 arrived and I started
to write Java code in applets...

There was a cool hack around to use Netscape to compile code and
generate a class file under Linux 1.2...

The promiss of "write once, run everywhere". Frames used AWT back
then and all have the same cup of cofee when iconized. After all,
the mac wasn;t able to iconize frames. Well, some flexibility was
trade off in the name of compatibility. Fine...

Then, we had to deal with threading issues in Solaris and Windows...
After that, JDBC arrived... True, multiplatform db access.
A query as complex as "select gettime()" could run in SQL Server
and Postgres (or it was called PostgreSQL at that time ?)
and return the same kind of data: a timestamp-like data in SQL Server
and an error in Postgres.

Since then, I never believed in platform independent coding. And it
was a long time ago....


>> Can you do the insert using a function instead, and return the currval
>> on the underlying sequence?
>>
>> John
>>
>
> I'm not sure what you mean. A stored procedure?
>
> The good thing about getGeneratedKeys() is that you don't have to write
> DB-specific code.
> --
> Henrik
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
>                http://archives.postgresql.org






view thread (17+ messages)  latest in thread

Message-ID: <61203.200.174.148.100.1072858789.squirrel@webmail.webnow.com.br>
Permalink:  ../61203.200.174.148.100.1072858789.squirrel@webmail.webnow.com.br/
Also on:    postgresql.org/message-id/61203.200.174.148.100.1072858789.squirrel@webmail.webnow.com.br

 · 

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: marcus.magalhaes@vlinfo.com.br, henr-and@dsv.su.se, johnsw@wardbrook.com
  Subject: Re: getGeneratedKeys()
  In-Reply-To: <61203.200.174.148.100.1072858789.squirrel@webmail.webnow.com.br>
  References: <3FF1C0EE.4010107@dsv.su.se> <Pine.LNX.4.33.0312301523060.5331-100000@leary.csoft.net> <32899.213.89.23.209.1072821322.squirrel@www.dsv.su.se> <1216.192.168.0.64.1072824461.squirrel@mercury.wardbrook.com> <33309.213.89.23.209.1072826327.squirrel@www.dsv.su.se> <61203.200.174.148.100.1072858789.squirrel@webmail.webnow.com.br>

* 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