aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2002-07-18 04:49:30 +0000
committerBruce Momjian <bruce@momjian.us>2002-07-18 04:49:30 +0000
commit8f211f8a8495b1c4d35ebe0e9a822366c4655c7c (patch)
treeddce35ea9d695cf61f265ea6672fd06443df5635
parent5a5e46ea7e2c66a5da62b6753a43903ce74bf8e2 (diff)
downloadpostgresql-8f211f8a8495b1c4d35ebe0e9a822366c4655c7c.tar.gz
postgresql-8f211f8a8495b1c4d35ebe0e9a822366c4655c7c.zip
Fix for PgTransaction class to make these visible to C apps:
ExecStatusType BeginTransaction(); ExecStatusType EndTransaction(); Piotr Klaban
-rw-r--r--src/interfaces/libpq++/pgtransdb.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/interfaces/libpq++/pgtransdb.h b/src/interfaces/libpq++/pgtransdb.h
index dddd35a7781..af98d565266 100644
--- a/src/interfaces/libpq++/pgtransdb.h
+++ b/src/interfaces/libpq++/pgtransdb.h
@@ -14,7 +14,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
*
-* $Id: pgtransdb.h,v 1.10 2002/07/02 16:32:19 momjian Exp $
+* $Id: pgtransdb.h,v 1.11 2002/07/18 04:49:30 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -32,8 +32,9 @@
//
// ****************************************************************
// This is the database access class that keeps an open
-// transaction block during its lifetime. The block is ENDed when
-// the object is destroyed.
+// transaction block during its lifetime. The block is ABORTed when
+// the object is destroyed, unless you call EndTransaction() method
+// before destruction of the object.
class DLLIMPORT PgTransaction : public PgDatabase
{
public:
@@ -42,7 +43,6 @@ public:
// explicit PgTransaction(const PgConnection&);
~PgTransaction(); // close connection and clean up
-protected:
ExecStatusType BeginTransaction();
ExecStatusType EndTransaction();