Index: doc/src/sgml/libpq++.sgml =================================================================== RCS file: /home/projects/pgsql/cvsroot/pgsql/doc/src/sgml/libpq++.sgml,v retrieving revision 1.29 diff -c -r1.29 libpq++.sgml *** doc/src/sgml/libpq++.sgml 2001/05/09 17:29:09 1.29 --- doc/src/sgml/libpq++.sgml 2001/05/09 17:43:20 *************** *** 430,436 **** Returns the size in bytes of the field associated with the given field index. Field indices start at 0. ! short PgDatabase::FieldSize(int field_num) const Returns the space allocated for this field in a database tuple given the field number. In other words the size of the server's binary --- 430,436 ---- Returns the size in bytes of the field associated with the given field index. Field indices start at 0. ! int PgDatabase::FieldSize(int field_num) const Returns the space allocated for this field in a database tuple given the field number. In other words the size of the server's binary *************** *** 444,450 **** Returns the size in bytes of the field associated with the given field index. Field indices start at 0. ! short PgDatabase::FieldSize(const char *field_name) const Returns the space allocated for this field in a database tuple given the field name. In other words the size of the server's binary --- 444,450 ---- Returns the size in bytes of the field associated with the given field index. Field indices start at 0. ! int PgDatabase::FieldSize(const char *field_name) const Returns the space allocated for this field in a database tuple given the field name. In other words the size of the server's binary Index: src/interfaces/libpq++/TODO =================================================================== RCS file: /home/projects/pgsql/cvsroot/pgsql/src/interfaces/libpq++/TODO,v retrieving revision 1.3 diff -c -r1.3 TODO *** src/interfaces/libpq++/TODO 2001/05/09 17:37:17 1.3 --- src/interfaces/libpq++/TODO 2001/05/09 17:43:25 *************** *** 1,5 **** * Implement exceptions * Many other things I have yet to discover - * fix getLength to return an int and not a short --- 1,4 ---- Index: src/interfaces/libpq++/pgdatabase.cc =================================================================== RCS file: /home/projects/pgsql/cvsroot/pgsql/src/interfaces/libpq++/pgdatabase.cc,v retrieving revision 1.10 diff -c -r1.10 pgdatabase.cc *** src/interfaces/libpq++/pgdatabase.cc 2001/05/09 17:29:10 1.10 --- src/interfaces/libpq++/pgdatabase.cc 2001/05/09 17:43:25 *************** *** 106,118 **** } ! short PgDatabase::FieldSize(int field_num) const { return PQfsize(pgResult, field_num); } ! short PgDatabase::FieldSize(const char* field_name) const { return PQfsize(pgResult, FieldNum(field_name)); } --- 106,118 ---- } ! int PgDatabase::FieldSize(int field_num) const { return PQfsize(pgResult, field_num); } ! int PgDatabase::FieldSize(const char* field_name) const { return PQfsize(pgResult, FieldNum(field_name)); } Index: src/interfaces/libpq++/pgdatabase.h =================================================================== RCS file: /home/projects/pgsql/cvsroot/pgsql/src/interfaces/libpq++/pgdatabase.h,v retrieving revision 1.10 diff -c -r1.10 pgdatabase.h *** src/interfaces/libpq++/pgdatabase.h 2001/05/09 17:29:10 1.10 --- src/interfaces/libpq++/pgdatabase.h 2001/05/09 17:43:25 *************** *** 51,58 **** 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; 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; --- 51,58 ---- int FieldNum(const char* field_name) const; Oid FieldType(int field_num) const; Oid FieldType(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;