diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-09-06 16:54:06 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-09-06 16:54:06 +0200 |
commit | 1b1cb92a27592da6ab9300b2c5c8384f7588e2af (patch) | |
tree | 2c4a92f14c303ff3aaced4e7b073f7180c0c5d6a /odb/sqlite/query.hxx | |
parent | 7d3f2b0badf4298bca53936d22a0a22c74538713 (diff) |
Support for views; native part
Diffstat (limited to 'odb/sqlite/query.hxx')
-rw-r--r-- | odb/sqlite/query.hxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/odb/sqlite/query.hxx b/odb/sqlite/query.hxx index 3179bda..f413756 100644 --- a/odb/sqlite/query.hxx +++ b/odb/sqlite/query.hxx @@ -1199,7 +1199,7 @@ namespace odb namespace odb { template <typename T> - class query<T, sqlite::query>: public object_traits<T>::query_type + class query<T, sqlite::query>: public query_selector<T>::type { public: // We don't define any typedefs here since they may clash with @@ -1212,40 +1212,40 @@ namespace odb explicit query (const std::string& q) - : object_traits<T>::query_type (q) + : query_selector<T>::type (q) { } template <typename T2> explicit query (sqlite::val_bind<T2> v) - : object_traits<T>::query_type (sqlite::query (v)) + : query_selector<T>::type (sqlite::query (v)) { } template <typename T2> explicit query (sqlite::ref_bind<T2> r) - : object_traits<T>::query_type (sqlite::query (r)) + : query_selector<T>::type (sqlite::query (r)) { } query (const sqlite::query& q) - : object_traits<T>::query_type (q) + : query_selector<T>::type (q) { } template <sqlite::database_type_id ID> query (const sqlite::query_column<bool, ID>& qc) - : object_traits<T>::query_type (qc) + : query_selector<T>::type (qc) { } std::string clause () const { - return object_traits<T>::query_type::clause ( - object_traits<T>::table_name); + return query_selector<T>::type::clause ( + query_selector<T>::table_name ()); } }; } |