diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-10-08 16:09:08 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-10-08 16:09:08 +0200 |
commit | 9f994010f871ce0ea1aea58482ddef503cfc81c3 (patch) | |
tree | 8375e64317972e048ff2f683489c8ae3e46897d6 /odb/pgsql/polymorphic-object-result.hxx | |
parent | 5303dd088f25ecbd5cf2b3bd423f977874223fae (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/polymorphic-object-result.hxx')
-rw-r--r-- | odb/pgsql/polymorphic-object-result.hxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/odb/pgsql/polymorphic-object-result.hxx b/odb/pgsql/polymorphic-object-result.hxx index 795a864..896b0e3 100644 --- a/odb/pgsql/polymorphic-object-result.hxx +++ b/odb/pgsql/polymorphic-object-result.hxx @@ -14,7 +14,7 @@ #include <odb/details/shared-ptr.hxx> #include <odb/pgsql/version.hxx> -#include <odb/pgsql/forward.hxx> // query +#include <odb/pgsql/forward.hxx> // query_base #include <odb/pgsql/statement.hxx> namespace odb @@ -28,23 +28,24 @@ namespace odb public: typedef odb::polymorphic_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_pgsql> object_traits; typedef typename base_type::pointer_traits pointer_traits; typedef typename base_type::root_type root_type; - typedef typename base_type::root_traits root_traits; typedef typename base_type::discriminator_type discriminator_type; + typedef object_traits_impl<root_type, id_pgsql> root_traits; + typedef typename object_traits::statements_type statements_type; virtual ~polymorphic_object_result_impl (); - polymorphic_object_result_impl (const query&, + polymorphic_object_result_impl (const query_base&, details::shared_ptr<select_statement>, statements_type&); |