aboutsummaryrefslogtreecommitdiff
path: root/odb/pgsql/statement-cache.txx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-10-08 16:09:08 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-10-08 16:09:08 +0200
commit9f994010f871ce0ea1aea58482ddef503cfc81c3 (patch)
tree8375e64317972e048ff2f683489c8ae3e46897d6 /odb/pgsql/statement-cache.txx
parent5303dd088f25ecbd5cf2b3bd423f977874223fae (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/pgsql/statement-cache.txx')
-rw-r--r--odb/pgsql/statement-cache.txx7
1 files changed, 5 insertions, 2 deletions
diff --git a/odb/pgsql/statement-cache.txx b/odb/pgsql/statement-cache.txx
index 40ed170..f3bbe07 100644
--- a/odb/pgsql/statement-cache.txx
+++ b/odb/pgsql/statement-cache.txx
@@ -7,10 +7,13 @@ namespace odb
namespace pgsql
{
template <typename T>
- typename object_traits<T>::statements_type& statement_cache::
+ typename object_traits_impl<T, id_pgsql>::statements_type&
+ statement_cache::
find_object ()
{
- typedef typename object_traits<T>::statements_type statements_type;
+ typedef
+ typename object_traits_impl<T, id_pgsql>::statements_type
+ statements_type;
map::iterator i (map_.find (&typeid (T)));