Skip to content

Commit 8f211f8

Browse files
committed
Fix for PgTransaction class to make these visible to C apps:
ExecStatusType BeginTransaction(); ExecStatusType EndTransaction(); Piotr Klaban
1 parent 5a5e46e commit 8f211f8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/interfaces/libpq++/pgtransdb.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* Portions Copyright (c) 1994, Regents of the University of California
1515
*
1616
*
17-
* $Id: pgtransdb.h,v 1.10 2002/07/02 16:32:19 momjian Exp $
17+
* $Id: pgtransdb.h,v 1.11 2002/07/18 04:49:30 momjian Exp $
1818
*
1919
*-------------------------------------------------------------------------
2020
*/
@@ -32,8 +32,9 @@
3232
//
3333
// ****************************************************************
3434
// This is the database access class that keeps an open
35-
// transaction block during its lifetime. The block is ENDed when
36-
// the object is destroyed.
35+
// transaction block during its lifetime. The block is ABORTed when
36+
// the object is destroyed, unless you call EndTransaction() method
37+
// before destruction of the object.
3738
class DLLIMPORT PgTransaction : public PgDatabase
3839
{
3940
public:
@@ -42,7 +43,6 @@ class DLLIMPORT PgTransaction : public PgDatabase
4243
// explicit PgTransaction(const PgConnection&);
4344
~PgTransaction(); // close connection and clean up
4445

45-
protected:
4646
ExecStatusType BeginTransaction();
4747
ExecStatusType EndTransaction();
4848

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy