diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-10-12 17:24:44 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-10-12 17:24:44 +0200 |
commit | 0051807a6c28dd0ebb425d05511fbf9127483ee1 (patch) | |
tree | 0591323ddc132ff666d3edb0d2c9717a25437cba /odb/oracle/connection.ixx | |
parent | 745e3ddf00303f6fed4e3962647c4eb11ee64816 (diff) |
Completion of prepared query support
Diffstat (limited to 'odb/oracle/connection.ixx')
-rw-r--r-- | odb/oracle/connection.ixx | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/odb/oracle/connection.ixx b/odb/oracle/connection.ixx new file mode 100644 index 0000000..9dcc818 --- /dev/null +++ b/odb/oracle/connection.ixx @@ -0,0 +1,30 @@ +// file : odb/oracle/connection.ixx +// copyright : Copyright (c) 2005-2012 Code Synthesis Tools CC +// license : ODB NCUEL; see accompanying LICENSE file + +namespace odb +{ + namespace oracle + { + template <typename T> + inline prepared_query<T> connection:: + prepare_query (const char* n, const char* q) + { + return prepare_query<T> (n, query<T> (q)); + } + + template <typename T> + inline prepared_query<T> connection:: + prepare_query (const char* n, const std::string& q) + { + return prepare_query<T> (n, query<T> (q)); + } + + template <typename T> + inline prepared_query<T> connection:: + prepare_query (const char* n, const query<T>& q) + { + return query_<T, id_oracle>::call (*this, n, q); + } + } +} |