Commit 5bb6bb8d authored by Bruce Momjian's avatar Bruce Momjian

Addition of CmdTuples(). Wraps PQcmdTuples.

Vince Vielhaber
parent b89044b2
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
* Copyright (c) 1994, Regents of the University of California * Copyright (c) 1994, Regents of the University of California
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/pgdatabase.cc,v 1.4 1999/09/21 21:19:31 momjian Exp $ * $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/pgdatabase.cc,v 1.5 1999/09/28 04:49:22 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -61,6 +61,12 @@ return PQntuples(pgResult); ...@@ -61,6 +61,12 @@ return PQntuples(pgResult);
} }
int PgDatabase::CmdTuples()
{
return PQcmdTuples (PGresult);
}
int PgDatabase::Fields() int PgDatabase::Fields()
{ {
return PQnfields(pgResult); return PQnfields(pgResult);
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* Copyright (c) 1994, Regents of the University of California * Copyright (c) 1994, Regents of the University of California
* *
* *
* $Id: pgdatabase.h,v 1.3 1999/09/21 21:19:31 momjian Exp $ * $Id: pgdatabase.h,v 1.4 1999/09/28 04:49:22 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -39,6 +39,7 @@ public: ...@@ -39,6 +39,7 @@ public:
// query result access // query result access
int Tuples(); int Tuples();
int CmdTuples();
int Fields(); int Fields();
const char* FieldName(int field_num); const char* FieldName(int field_num);
int FieldNum(const char* field_name); int FieldNum(const char* field_name);
......
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