diff options
Diffstat (limited to 'odb/oracle/connection.ixx')
-rw-r--r-- | odb/oracle/connection.ixx | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/odb/oracle/connection.ixx b/odb/oracle/connection.ixx index 9dcc818..2eb23fe 100644 --- a/odb/oracle/connection.ixx +++ b/odb/oracle/connection.ixx @@ -22,9 +22,18 @@ namespace odb template <typename T> inline prepared_query<T> connection:: - prepare_query (const char* n, const query<T>& q) + prepare_query (const char* n, const oracle::query_base& q) { return query_<T, id_oracle>::call (*this, n, q); } + + template <typename T> + inline prepared_query<T> connection:: + prepare_query (const char* n, const odb::query_base& q) + { + // Translate to native query. + // + return prepare_query<T> (n, oracle::query_base (q)); + } } } |