aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/mysql/connection.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/odb/mysql/connection.hxx b/odb/mysql/connection.hxx
index 3667c10..a54194e 100644
--- a/odb/mysql/connection.hxx
+++ b/odb/mysql/connection.hxx
@@ -139,7 +139,11 @@ namespace odb
clear_ ();
private:
+ // Needed to break the circular connection-database dependency
+ // (odb::connection has the odb::database member).
+ //
database_type& db_;
+
bool failed_;
MYSQL mysql_;