Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit e2c9fd8

Browse files
committed
|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 |
1 parent 5e773a4 commit e2c9fd8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
* IDENTIFICATION
1616
*
17-
* $Id: libpq++.H,v 1.1.1.1 1996/07/09 06:22:18 scrappy Exp $
17+
* $Id: libpq++.H,v 1.2 1996/08/21 04:32:09 scrappy Exp $
1818
*
1919
*-------------------------------------------------------------------------
2020
*/
@@ -124,6 +124,10 @@ public:
124124
{return PQgetline(conn, string, length);};
125125
void putline(char* string)
126126
{PQputline(conn, string);};
127+
const char *OidStatus()
128+
{
129+
return PQoidStatus(result);
130+
}
127131
int endcopy()
128132
{return PQendcopy(conn);};
129133
~PGdatabase() {}; // close connection and clean up

0 commit comments

Comments
 (0)