From e84fa8e3b8defe24a00e14ba046e8e71b438ce0b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 21 Aug 2011 16:27:34 +0200 Subject: Add odb::connection class This abstract class represents a connection to the database. One can use it to start a transaction or to execute a native statement out of a transaction. Before we had concrete connection classes in the database runtime libraries (e.g., odb::mysql::connection). Now these classes derive from odb::connection. --- odb/mysql/transaction-impl.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'odb/mysql/transaction-impl.cxx') diff --git a/odb/mysql/transaction-impl.cxx b/odb/mysql/transaction-impl.cxx index 659dc56..86cccbe 100644 --- a/odb/mysql/transaction-impl.cxx +++ b/odb/mysql/transaction-impl.cxx @@ -14,8 +14,8 @@ namespace odb namespace mysql { transaction_impl:: - transaction_impl (database_type& db) - : odb::transaction_impl (db), connection_ (db.connection ()) + transaction_impl (connection_ptr c) + : odb::transaction_impl (c->database (), *c), connection_ (c) { if (mysql_real_query (connection_->handle (), "begin", 5) != 0) translate_error (*connection_); -- cgit v1.1