diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-10-08 16:09:07 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-10-08 16:09:07 +0200 |
commit | c0af27a770b1505ad6a1226f57f90642ce395296 (patch) | |
tree | 21fa70b3fa49c639cef4d5f07b73815291e3be1c /odb/mysql/statement-cache.txx | |
parent | 46b2db37445b97cd3dbb8acd4f417e0851a30e4f (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/statement-cache.txx')
-rw-r--r-- | odb/mysql/statement-cache.txx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/odb/mysql/statement-cache.txx b/odb/mysql/statement-cache.txx index 3acc5fe..0517159 100644 --- a/odb/mysql/statement-cache.txx +++ b/odb/mysql/statement-cache.txx @@ -7,10 +7,13 @@ namespace odb namespace mysql { template <typename T> - typename object_traits<T>::statements_type& statement_cache:: + typename object_traits_impl<T, id_mysql>::statements_type& + statement_cache:: find_object () { - typedef typename object_traits<T>::statements_type statements_type; + typedef + typename object_traits_impl<T, id_mysql>::statements_type + statements_type; map::iterator i (map_.find (&typeid (T))); |