]> granicus.if.org Git - postgresql/commitdiff
|May I suggest to add access to the oid of an inserted
authorMarc G. Fournier <scrappy@hub.org>
Wed, 21 Aug 1996 04:32:09 +0000 (04:32 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Wed, 21 Aug 1996 04:32:09 +0000 (04:32 +0000)
|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
|

src/interfaces/libpq++/libpq++.H

index 9b3e1739007b8617312f33da3410957da93e5174..24482570f503fae6643839452db060a4320003ee 100644 (file)
@@ -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.2 1996/08/21 04:32:09 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