mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Addition of CmdTuples(). Wraps PQcmdTuples.
Vince Vielhaber
This commit is contained in:
@ -10,7 +10,7 @@
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* 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);
|
||||
}
|
||||
|
||||
|
||||
int PgDatabase::CmdTuples()
|
||||
{
|
||||
return PQcmdTuples (PGresult);
|
||||
}
|
||||
|
||||
|
||||
int PgDatabase::Fields()
|
||||
{
|
||||
return PQnfields(pgResult);
|
||||
|
@ -13,7 +13,7 @@
|
||||
* 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:
|
||||
|
||||
// query result access
|
||||
int Tuples();
|
||||
int CmdTuples();
|
||||
int Fields();
|
||||
const char* FieldName(int field_num);
|
||||
int FieldNum(const char* field_name);
|
||||
|
Reference in New Issue
Block a user