Commit 8f211f8a authored by Bruce Momjian's avatar Bruce Momjian

Fix for PgTransaction class to make these visible to C apps:

   ExecStatusType BeginTransaction();
   ExecStatusType EndTransaction();

Piotr Klaban
parent 5a5e46ea
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* Portions Copyright (c) 1994, Regents of the University of California * 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 @@ ...@@ -32,8 +32,9 @@
// //
// **************************************************************** // ****************************************************************
// This is the database access class that keeps an open // This is the database access class that keeps an open
// transaction block during its lifetime. The block is ENDed when // transaction block during its lifetime. The block is ABORTed when
// the object is destroyed. // the object is destroyed, unless you call EndTransaction() method
// before destruction of the object.
class DLLIMPORT PgTransaction : public PgDatabase class DLLIMPORT PgTransaction : public PgDatabase
{ {
public: public:
...@@ -42,7 +43,6 @@ public: ...@@ -42,7 +43,6 @@ public:
// explicit PgTransaction(const PgConnection&); // explicit PgTransaction(const PgConnection&);
~PgTransaction(); // close connection and clean up ~PgTransaction(); // close connection and clean up
protected:
ExecStatusType BeginTransaction(); ExecStatusType BeginTransaction();
ExecStatusType EndTransaction(); ExecStatusType EndTransaction();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment