aboutsummaryrefslogtreecommitdiff
path: root/odb/mysql/container-statements.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-11-17 18:05:06 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-11-17 18:05:06 +0200
commitf959f1fb57ba5607573625aecf8ff38e4de9d558 (patch)
tree8464e6eaf79dbcb56db474b9e81d6d4de457018b /odb/mysql/container-statements.hxx
parent81d08ed6587144baaec83522382119a7286a911e (diff)
Add support for unidirectional object relationships
New test: common/relationship.
Diffstat (limited to 'odb/mysql/container-statements.hxx')
-rw-r--r--odb/mysql/container-statements.hxx12
1 files changed, 10 insertions, 2 deletions
diff --git a/odb/mysql/container-statements.hxx b/odb/mysql/container-statements.hxx
index 322129f..4d23d5a 100644
--- a/odb/mysql/container-statements.hxx
+++ b/odb/mysql/container-statements.hxx
@@ -40,7 +40,15 @@ namespace odb
typedef mysql::select_statement select_statement_type;
typedef mysql::delete_statement delete_statement_type;
- container_statements (connection&);
+ typedef mysql::connection connection_type;
+
+ container_statements (connection_type&);
+
+ connection_type&
+ connection ()
+ {
+ return conn_;
+ }
// Functions.
//
@@ -129,7 +137,7 @@ namespace odb
container_statements& operator= (const container_statements&);
private:
- connection& conn_;
+ connection_type& conn_;
functions_type functions_;
cond_image_type cond_image_;