summaryrefslogtreecommitdiff
path: root/libodbcpp/odbc-connection.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-12-29 05:16:51 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2015-12-29 06:00:08 +0000
commit50a3dbfd0fa9dbcdf542d64be26d6f44ba65998c (patch)
tree2c00d0fc906e2b246ca2df29e2dc61580cb37444 /libodbcpp/odbc-connection.h
parentAdd missing override attribute (diff)
downloadlibdbpp-odbc-50a3dbfd0fa9dbcdf542d64be26d6f44ba65998c.tar.bz2
libdbpp-odbc-50a3dbfd0fa9dbcdf542d64be26d6f44ba65998c.tar.xz
libdbpp-odbc-50a3dbfd0fa9dbcdf542d64be26d6f44ba65998c.zip
Improve and centralise transaction handling logiclibdbpp-odbc-1.0.0
Diffstat (limited to 'libodbcpp/odbc-connection.h')
-rw-r--r--libodbcpp/odbc-connection.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/libodbcpp/odbc-connection.h b/libodbcpp/odbc-connection.h
index 7fe5c56..97305e1 100644
--- a/libodbcpp/odbc-connection.h
+++ b/libodbcpp/odbc-connection.h
@@ -21,14 +21,10 @@ namespace ODBC {
SQLHENV env;
SQLHDBC conn;
- void finish() const override;
- int beginTx() const override;
- int commitTx() const override;
- int rollbackTx() const override;
- void abortTx() const;
- bool txIsAborted() const;
- bool inTx() const override;
- void ping() const override;
+ void beginTxInt() override;
+ void commitTxInt() override;
+ void rollbackTxInt() override;
+ void ping() const override;
std::string getAttrStr(SQLINTEGER) const;
SQLINTEGER getAttrInt(SQLINTEGER) const;
DB::BulkDeleteStyle bulkDeleteStyle() const override;
@@ -43,8 +39,6 @@ namespace ODBC {
void connectPre();
void connectPost();
- mutable unsigned int txDepth;
- mutable bool txAborted;
};
}