diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-11-17 18:05:06 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-11-17 18:05:06 +0200 |
commit | f959f1fb57ba5607573625aecf8ff38e4de9d558 (patch) | |
tree | 8464e6eaf79dbcb56db474b9e81d6d4de457018b /odb/mysql/connection.cxx | |
parent | 81d08ed6587144baaec83522382119a7286a911e (diff) |
Add support for unidirectional object relationships
New test: common/relationship.
Diffstat (limited to 'odb/mysql/connection.cxx')
-rw-r--r-- | odb/mysql/connection.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/odb/mysql/connection.cxx b/odb/mysql/connection.cxx index 0b38d35..d87e578 100644 --- a/odb/mysql/connection.cxx +++ b/odb/mysql/connection.cxx @@ -17,8 +17,9 @@ namespace odb namespace mysql { connection:: - connection (database& db) - : handle_ (&mysql_), + connection (database_type& db) + : db_ (db), + handle_ (&mysql_), active_ (0), statement_cache_ (new statement_cache_type (*this)) { |