diff options
Diffstat (limited to 'src/interfaces/libpq++/pgdatabase.cc')
-rw-r--r-- | src/interfaces/libpq++/pgdatabase.cc | 15 |
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); |