summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1996-08-21 04:31:14 +0000
committerMarc G. Fournier <scrappy@hub.org>1996-08-21 04:31:14 +0000
commit2a3b2fd0ce5a26923db0dfc2ad44e6ab40ef02ae (patch)
treecdf9aee399ad54b240924bff26433248f3800c5a /src
parentb2692ecaa94b10ed426fc41857772e78257dac31 (diff)
|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 |
Diffstat (limited to 'src')
-rw-r--r--src/interfaces/libpq++/libpq++.H6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/interfaces/libpq++/libpq++.H b/src/interfaces/libpq++/libpq++.H
index 9b3e1739007..fcd18a4b757 100644
--- a/src/interfaces/libpq++/libpq++.H
+++ b/src/interfaces/libpq++/libpq++.H
@@ -14,7 +14,7 @@
*
* IDENTIFICATION
*
- * $Id: libpq++.H,v 1.1.1.1 1996/07/09 06:22:18 scrappy Exp $
+ * $Id: libpq++.H,v 1.1.1.1.2.1 1996/08/21 04:31:14 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
@@ -124,6 +124,10 @@ public:
{return PQgetline(conn, string, length);};
void putline(char* string)
{PQputline(conn, string);};
+ const char *OidStatus()
+ {
+ return PQoidStatus(result);
+ }
int endcopy()
{return PQendcopy(conn);};
~PGdatabase() {}; // close connection and clean up