mirror of
https://github.com/postgres/postgres.git
synced 2025-11-22 12:22:45 +03:00
Fix libpq++'s FieldSize to return int, not short.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
|
||||
* Implement exceptions
|
||||
* Many other things I have yet to discover
|
||||
* fix getLength to return an int and not a short
|
||||
|
||||
|
||||
@@ -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.10 2001/05/09 17:29:10 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/pgdatabase.cc,v 1.11 2001/05/09 17:46:11 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -106,13 +106,13 @@ return PQftype(pgResult, FieldNum(field_name));
|
||||
}
|
||||
|
||||
|
||||
short PgDatabase::FieldSize(int field_num) const
|
||||
int PgDatabase::FieldSize(int field_num) const
|
||||
{
|
||||
return PQfsize(pgResult, field_num);
|
||||
}
|
||||
|
||||
|
||||
short PgDatabase::FieldSize(const char* field_name) const
|
||||
int PgDatabase::FieldSize(const char* field_name) const
|
||||
{
|
||||
return PQfsize(pgResult, FieldNum(field_name));
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
*
|
||||
* $Id: pgdatabase.h,v 1.10 2001/05/09 17:29:10 momjian Exp $
|
||||
* $Id: pgdatabase.h,v 1.11 2001/05/09 17:46:11 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -51,8 +51,8 @@ public:
|
||||
int FieldNum(const char* field_name) const;
|
||||
Oid FieldType(int field_num) const;
|
||||
Oid FieldType(const char* field_name) const;
|
||||
short FieldSize(int field_num) const;
|
||||
short FieldSize(const char* field_name) const;
|
||||
int FieldSize(int field_num) const;
|
||||
int FieldSize(const char* field_name) const;
|
||||
const char* GetValue(size_type tup_num, int field_num) const;
|
||||
const char* GetValue(size_type tup_num, const char* field_name) const;
|
||||
bool GetIsNull(size_type tup_num, int field_num) const;
|
||||
|
||||
Reference in New Issue
Block a user