diff options
author | Bruce Momjian <bruce@momjian.us> | 2001-05-09 17:29:10 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2001-05-09 17:29:10 +0000 |
commit | a79b698adbc97fabc17a8c9a60a81cb3c2f93210 (patch) | |
tree | a70f9d8cab969c947503a8af47cda276a2964afa /src/interfaces/libpq++/pglobject.cc | |
parent | c8db55f78ae75235530ccc87c9d36bfd7656b951 (diff) | |
download | postgresql-a79b698adbc97fabc17a8c9a60a81cb3c2f93210.tar.gz postgresql-a79b698adbc97fabc17a8c9a60a81cb3c2f93210.zip |
Here's a version of my suggested diffs transplanted to 7.1 beta 5. I'm
still looking at the best way to integrate Tom Vijlbrief's fixes
(insofar as they're still needed); would 7.2 be a suitable time for
incompatible API changes?
Jeroen
Changes:
(*) Introduced bool, true, false (replacing some int, 1, 0)
(*) Made some member functions const
(*) Documented GetIsNull()
(*) Marked DisplayTuples() and PrintTuples() as obsolescent; fixed possible
portability problem (assumed that NULL pointer equals all-zero bit pattern)
(*) PrintTuples(): renamed width parameter to fillAlign to conform with other
usage; fixed memory leak and compile issue w.r.t. field separator (should
also slightly improve performance)
(*) Fixed some minor compilation issues
(*) Moved "using namespace std;" out of headers, where they didn't belong; used
new (temporary) preprocessor macro PGSTD to do this
(*) Made ToString() static, removed unneeded memset(), made buffer size adapt
to sizeof(int)
(*) Made some constructors explicit
(*) Changed some const std::string & parameters to plain std::string
(*) Marked PgCursor::Cursor(std::string) as obsolescent (setter with same name
as getter--bad style)
(*) Renamed some paramaters previously named "string"
(*) Introduced size_type typedef for number of tuples in result set
(*) PgTransaction now supports re-opening after closing, and aborts if not
explicitly committed prior to destruction
J. T. Vermeulen
Diffstat (limited to 'src/interfaces/libpq++/pglobject.cc')
-rw-r--r-- | src/interfaces/libpq++/pglobject.cc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/interfaces/libpq++/pglobject.cc b/src/interfaces/libpq++/pglobject.cc index 5eee2436869..0523ec8f91a 100644 --- a/src/interfaces/libpq++/pglobject.cc +++ b/src/interfaces/libpq++/pglobject.cc @@ -10,7 +10,7 @@ * Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/pglobject.cc,v 1.6 2000/04/22 22:39:15 tgl Exp $ + * $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/pglobject.cc,v 1.7 2001/05/09 17:29:10 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -21,6 +21,10 @@ extern "C" { #include "libpq/libpq-fs.h" } + +using namespace std; + + // **************************************************************** // // PgLargeObject Implementation @@ -142,7 +146,7 @@ int PgLargeObject::LSeek(int offset, int whence) } -int PgLargeObject::Tell() +int PgLargeObject::Tell() const { return lo_tell(pgConn, pgFd); } @@ -160,7 +164,7 @@ int PgLargeObject::Export(const char* filename) } -string PgLargeObject::Status() +string PgLargeObject::Status() const { return loStatus; } |