From 1568e64c2135bf245de960ae614bd3533c6d157a Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 10 Jul 2012 15:17:14 +0200 Subject: Add support for custom database type mapping New pragma qualifier, map, and specifiers: as, to, from. New tests: /custom. --- odb/sqlite/query.ixx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'odb/sqlite/query.ixx') diff --git a/odb/sqlite/query.ixx b/odb/sqlite/query.ixx index dcd1ebe..113b376 100644 --- a/odb/sqlite/query.ixx +++ b/odb/sqlite/query.ixx @@ -20,20 +20,22 @@ namespace odb template inline void query:: - append (val_bind v) + append (val_bind v, const char* conv) { add ( details::shared_ptr ( - new (details::shared) query_param_impl (v))); + new (details::shared) query_param_impl (v)), + conv); } template inline void query:: - append (ref_bind r) + append (ref_bind r, const char* conv) { add ( details::shared_ptr ( - new (details::shared) query_param_impl (r))); + new (details::shared) query_param_impl (r)), + conv); } } } -- cgit v1.1