Renaud Thonnart writes:
> I would like to know if it was possible to get the OID of a tuple when
> we insert it, but not by making a "SELECT oid ... "
> Perhaps does a function of libpq++ exist?
> Something like :
>
>
> data.Exec("INSERT INTO table VALUES (10,20, 'aaa')");
> int oid = data.GetOid();
There's a function called PQoidValue() in libpq. Not sure if it's
available through libpq++, though.
--
Peter Eisentraut peter_e(at)gmx(dot)net http://funkturm.homeip.net/~peter