From cb2add469737f428bc5df00b13b0bed82c30c187 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 3 Dec 2012 13:12:13 +0200 Subject: Add support for executing common query using static interface --- odb/sqlite/connection.ixx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'odb/sqlite/connection.ixx') diff --git a/odb/sqlite/connection.ixx b/odb/sqlite/connection.ixx index 9117bd4..f1f4183 100644 --- a/odb/sqlite/connection.ixx +++ b/odb/sqlite/connection.ixx @@ -22,9 +22,18 @@ namespace odb template inline prepared_query connection:: - prepare_query (const char* n, const query& q) + prepare_query (const char* n, const sqlite::query_base& q) { return query_::call (*this, n, q); } + + template + inline prepared_query connection:: + prepare_query (const char* n, const odb::query_base& q) + { + // Translate to native query. + // + return prepare_query (n, sqlite::query_base (q)); + } } } -- cgit v1.1