aboutsummaryrefslogtreecommitdiff
path: root/odb/mssql/statement-cache.txx
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
commitd3261c7ed4ac622c8807ba88b39bd41632577c4f (patch)
tree5b21da2657756b553d70526c18ea30c387d2b25b /odb/mssql/statement-cache.txx
parentf301e6ae8a836dff7face65e24e2de29e077166b (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/mssql/statement-cache.txx')
-rw-r--r--odb/mssql/statement-cache.txx7
1 files changed, 5 insertions, 2 deletions
diff --git a/odb/mssql/statement-cache.txx b/odb/mssql/statement-cache.txx
index 655f861..73acb87 100644
--- a/odb/mssql/statement-cache.txx
+++ b/odb/mssql/statement-cache.txx
@@ -7,10 +7,13 @@ namespace odb
namespace mssql
{
template <typename T>
- typename object_traits<T>::statements_type& statement_cache::
+ typename object_traits_impl<T, id_mssql>::statements_type&
+ statement_cache::
find_object ()
{
- typedef typename object_traits<T>::statements_type statements_type;
+ typedef
+ typename object_traits_impl<T, id_mssql>::statements_type
+ statements_type;
map::iterator i (map_.find (&typeid (T)));