Commit e2c9fd8e authored by Marc G. Fournier's avatar Marc G. Fournier

|May I suggest to add access to the oid of an inserted

|record, by a small patch to libpq++? At least until the
|feature that will allow dumped oid's to be re-loaded into
|a database becomes available, I need access to the oids
|of newly created records... To this end, I have written a
|three-line wrapper for the PQoidStatus function in libpq and
|named this wrapper OidStatus() (I'd appreciate suggestions for
|a name that would better fit into the general naming scheme).
|
|Regards,
|
|Ernst
|
parent 5e773a4f
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* *
* IDENTIFICATION * IDENTIFICATION
* *
* $Id: libpq++.H,v 1.1.1.1 1996/07/09 06:22:18 scrappy Exp $ * $Id: libpq++.H,v 1.2 1996/08/21 04:32:09 scrappy Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -124,6 +124,10 @@ public: ...@@ -124,6 +124,10 @@ public:
{return PQgetline(conn, string, length);}; {return PQgetline(conn, string, length);};
void putline(char* string) void putline(char* string)
{PQputline(conn, string);}; {PQputline(conn, string);};
const char *OidStatus()
{
return PQoidStatus(result);
}
int endcopy() int endcopy()
{return PQendcopy(conn);}; {return PQendcopy(conn);};
~PGdatabase() {}; // close connection and clean up ~PGdatabase() {}; // close connection and clean up
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment