summaryrefslogtreecommitdiff
path: root/src/interfaces/libpq++/pgdatabase.cc
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1999-09-21 21:19:31 +0000
committerBruce Momjian <bruce@momjian.us>1999-09-21 21:19:31 +0000
commit4b06f6f9c84a390b43aa24d22cd04b006e70f0b4 (patch)
tree486462b94fda81aa04b7e989d22c0284f74090f8 /src/interfaces/libpq++/pgdatabase.cc
parent79434a3d54425331c7faa8c73bff799c77d92a20 (diff)
I found the following useful - just a way of using PQgetisnull from
libpq++. Patrick Welche
Diffstat (limited to 'src/interfaces/libpq++/pgdatabase.cc')
-rw-r--r--src/interfaces/libpq++/pgdatabase.cc15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/interfaces/libpq++/pgdatabase.cc b/src/interfaces/libpq++/pgdatabase.cc
index 0c26a6a5be2..24f07715f40 100644
--- a/src/interfaces/libpq++/pgdatabase.cc
+++ b/src/interfaces/libpq++/pgdatabase.cc
@@ -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.3 1999/06/05 18:05:17 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/pgdatabase.cc,v 1.4 1999/09/21 21:19:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -115,6 +115,18 @@ return PQgetvalue(pgResult, tup_num, FieldNum(field_name));
}
+int PgDatabase::GetIsNull(int tup_num, int field_num)
+{
+return PQgetisnull(pgResult, tup_num, field_num);
+}
+
+
+int PgDatabase::GetIsNull(int tup_num, const char* field_name)
+{
+return PQgetisnull(pgResult, tup_num, FieldNum(field_name));
+}
+
+
int PgDatabase::GetLength(int tup_num, int field_num)
{
return PQgetlength(pgResult, tup_num, field_num);
@@ -126,6 +138,7 @@ int PgDatabase::GetLength(int tup_num, const char* field_name)
return PQgetlength(pgResult, tup_num, FieldNum(field_name));
}
+
int PgDatabase::GetLine(char* string, int length)
{
return PQgetline(pgConn, string, length);