summaryrefslogtreecommitdiff
path: root/odb/mysql/simple-object-result.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-10-08 16:09:07 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-10-08 16:09:07 +0200
commitc0af27a770b1505ad6a1226f57f90642ce395296 (patch)
tree21fa70b3fa49c639cef4d5f07b73815291e3be1c /odb/mysql/simple-object-result.hxx
parent46b2db37445b97cd3dbb8acd4f417e0851a30e4f (diff)
Ground work for multi-database support
All generated code now includes database id. The database-specific database class interface has been updated to include all the database operations. The database-specific tests now use this interface.
Diffstat (limited to 'odb/mysql/simple-object-result.hxx')
-rw-r--r--odb/mysql/simple-object-result.hxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/odb/mysql/simple-object-result.hxx b/odb/mysql/simple-object-result.hxx
index b92c5ce..bcf74f7 100644
--- a/odb/mysql/simple-object-result.hxx
+++ b/odb/mysql/simple-object-result.hxx
@@ -14,7 +14,7 @@
#include <odb/details/shared-ptr.hxx>
#include <odb/mysql/version.hxx>
-#include <odb/mysql/forward.hxx> // query
+#include <odb/mysql/forward.hxx> // query_base
#include <odb/mysql/statement.hxx>
namespace odb
@@ -27,11 +27,11 @@ namespace odb
public:
typedef odb::object_result_impl<T> base_type;
- typedef typename base_type::object_type object_type;
- typedef typename base_type::object_traits object_traits;
typedef typename base_type::id_type id_type;
-
+ typedef typename base_type::object_type object_type;
typedef typename base_type::pointer_type pointer_type;
+
+ typedef object_traits_impl<object_type, id_mysql> object_traits;
typedef typename base_type::pointer_traits pointer_traits;
typedef typename object_traits::statements_type statements_type;
@@ -39,7 +39,7 @@ namespace odb
virtual
~object_result_impl ();
- object_result_impl (const query&,
+ object_result_impl (const query_base&,
details::shared_ptr<select_statement>,
statements_type&);