Marc SCHAEFER writes:
> - how do you detect the error `Can't insert tuple because duplicate' ?
if (strcmp(PQerrorMessage(conn), "ERROR: Can't insert tuple because duplicate") == 0) {
panic();
}
I know it's not ideal, but it's about the best you can do.
>
> - how do you get the OID of an insertion
PQoidValue()
> (the goal being to get
> the value for the SERIAL type, in order to do something with it) ?
Serial values and oids are not related.
--
Peter Eisentraut peter_e@gmx.net http://yi.org/peter-e/