[DB-SIG] Which db mapping tool?

Gerhard Häring gerhard.haering@gmx.de
Tue, 16 Jul 2002 14:10:08 +0200


* Federico Di Gregorio <fog@initd.org> [2002-07-16 13:38 +0200]:
> Il mar, 2002-07-16 alle 13:03, Gerhard Häring ha scritto:
> > * Federico Di Gregorio <fog@initd.org> [2002-07-16 12:09 +0200]:
> > > psycopg 1.0.9 has lastoid(), 1.1 series lastrowid()
> > 
> > The 1.1 name is perhaps slightly misleading, as it still returns the
> > OID.
> 
> erm. what do you mean by ROWID? 

create table test (id serial, name varchar(20));
insert into test(name) values ('foobar');

By ROWID, I mean the value the serial primary key gets in that row. If
the 'rowid' term has a different specific meaning, I wasn't aware of it.

Gerhard
-- 
mail:   gerhard <at> bigfoot <dot> de       registered Linux user #64239
web:    http://www.cs.fhm.edu/~ifw00065/    OpenPGP public key id AD24C930
public key fingerprint: 3FCC 8700 3012 0A9E B0C9  3667 814B 9CAA AD24 C930
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))