diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-07-10 15:17:13 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-07-10 15:17:13 +0200 |
commit | c970a38889d5774f7d0f73215dfd70934524d76a (patch) | |
tree | 3421c4c00fed4cea6362b84b8a8acd8b1275e9db /odb/mysql/query.ixx | |
parent | ca6e36f6bda1d0a1dc55bc2e89609ae48bf443dd (diff) |
Add support for custom database type mapping
New pragma qualifier, map, and specifiers: as, to, from. New tests:
<database>/custom.
Diffstat (limited to 'odb/mysql/query.ixx')
-rw-r--r-- | odb/mysql/query.ixx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/odb/mysql/query.ixx b/odb/mysql/query.ixx index 674c6cd..2508ae3 100644 --- a/odb/mysql/query.ixx +++ b/odb/mysql/query.ixx @@ -8,20 +8,22 @@ namespace odb { template <typename T, database_type_id ID> inline void query:: - append (val_bind<T> v) + append (val_bind<T> v, const char* conv) { add ( details::shared_ptr<query_param> ( - new (details::shared) query_param_impl<T, ID> (v))); + new (details::shared) query_param_impl<T, ID> (v)), + conv); } template <typename T, database_type_id ID> inline void query:: - append (ref_bind<T> r) + append (ref_bind<T> r, const char* conv) { add ( details::shared_ptr<query_param> ( - new (details::shared) query_param_impl<T, ID> (r))); + new (details::shared) query_param_impl<T, ID> (r)), + conv); } } } |