diff options
author | Marc G. Fournier <scrappy@hub.org> | 2002-08-22 00:15:14 +0000 |
---|---|---|
committer | Marc G. Fournier <scrappy@hub.org> | 2002-08-22 00:15:14 +0000 |
commit | da4683fbe1cba48cf5b5b29055b66e0bacb00162 (patch) | |
tree | 87834b1b18614313e895dcc8c504f58af9f6b4b2 /src/interfaces/libpq++/pgtransdb.cc | |
parent | b663f3443ba096a06970214c3e83e79f6e570b84 (diff) | |
download | postgresql-da4683fbe1cba48cf5b5b29055b66e0bacb00162.tar.gz postgresql-da4683fbe1cba48cf5b5b29055b66e0bacb00162.zip |
Okay, libpq++ is moved to GBorg, and all traces of it have been removed
from the core repository ... I haven't *moved* the libpq++ files out of the
tree, mainly as we want to keep them in place for past branches ...
Peter, I think I've covered all the files I need, and re-ran autoconf to make
sure the configure file is in place properly ...
Diffstat (limited to 'src/interfaces/libpq++/pgtransdb.cc')
-rw-r--r-- | src/interfaces/libpq++/pgtransdb.cc | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/src/interfaces/libpq++/pgtransdb.cc b/src/interfaces/libpq++/pgtransdb.cc deleted file mode 100644 index d3efee5c7c6..00000000000 --- a/src/interfaces/libpq++/pgtransdb.cc +++ /dev/null @@ -1,54 +0,0 @@ -/*------------------------------------------------------------------------- -* -* FILE -* pgtransdb.cpp -* -* DESCRIPTION -* implementation of the PgTransaction class. -* PgConnection encapsulates a transaction querying to backend -* -* Copyright (c) 1994, Regents of the University of California -* -* IDENTIFICATION -* $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/pgtransdb.cc,v 1.5 2002/07/02 16:32:19 momjian Exp $ -* -*------------------------------------------------------------------------- -*/ - -#include "pgtransdb.h" - -// **************************************************************** -// -// PgTransaction Implementation -// -// **************************************************************** -// Make a connection to the specified database with default environment -// See PQconnectdb() for conninfo usage. -PgTransaction::PgTransaction(const char* conninfo) - : PgDatabase(conninfo), - pgCommitted(true) -{ - BeginTransaction(); -} - -// Destructor: End the transaction block -PgTransaction::~PgTransaction() -{ - if (!pgCommitted) - Exec("ABORT"); -} - -// Begin the transaction block -ExecStatusType PgTransaction::BeginTransaction() -{ - pgCommitted = false; - return Exec("BEGIN"); -} // End BeginTransaction() - -// Begin the transaction block -ExecStatusType PgTransaction::EndTransaction() -{ - pgCommitted = true; - return Exec("END"); -} // End EndTransaction() - |