From 951e67b64812128249f572b60e7ca012bad28bfc Mon Sep 17 00:00:00 2001 From: randomdan Date: Thu, 21 Sep 2006 23:14:28 +0000 Subject: Fix the C++ template errors Add some half decent transaction support Change the error handling to not 'handle' _with_info --- libodbcpp/connection.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libodbcpp/connection.h') diff --git a/libodbcpp/connection.h b/libodbcpp/connection.h index d5adb31..8593e82 100644 --- a/libodbcpp/connection.h +++ b/libodbcpp/connection.h @@ -11,6 +11,15 @@ namespace ODBC { ~Connection(); SQLHENV env; SQLHDBC conn; + + int beginTx(); + int commitTx(); + int rollbackTx(); + void abortTx() const; + bool txIsAborted() const; + private: + mutable unsigned int txDepth; + mutable bool txAborted; }; } -- cgit v1.2.3