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.txx | |
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.txx')
-rw-r--r-- | odb/mysql/query.txx | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/odb/mysql/query.txx b/odb/mysql/query.txx index 0377c33..80b6358 100644 --- a/odb/mysql/query.txx +++ b/odb/mysql/query.txx @@ -19,7 +19,7 @@ namespace odb // append (c.table (), c.column ()); append ("="); - append<bool, ID> (val_bind<bool> (true)); + append<bool, ID> (val_bind<bool> (true), c.conversion ()); } // query_column @@ -30,9 +30,9 @@ namespace odb { query q (table_, column_); q += "IN ("; - q.append<T, ID> (val_bind<T> (v1)); + q.append<T, ID> (val_bind<T> (v1), conversion_); q += ","; - q.append<T, ID> (val_bind<T> (v2)); + q.append<T, ID> (val_bind<T> (v2), conversion_); q += ")"; return q; } @@ -43,11 +43,11 @@ namespace odb { query q (table_, column_); q += "IN ("; - q.append<T, ID> (val_bind<T> (v1)); + q.append<T, ID> (val_bind<T> (v1), conversion_); q += ","; - q.append<T, ID> (val_bind<T> (v2)); + q.append<T, ID> (val_bind<T> (v2), conversion_); q += ","; - q.append<T, ID> (val_bind<T> (v3)); + q.append<T, ID> (val_bind<T> (v3), conversion_); q += ")"; return q; } @@ -58,13 +58,13 @@ namespace odb { query q (table_, column_); q += "IN ("; - q.append<T, ID> (val_bind<T> (v1)); + q.append<T, ID> (val_bind<T> (v1), conversion_); q += ","; - q.append<T, ID> (val_bind<T> (v2)); + q.append<T, ID> (val_bind<T> (v2), conversion_); q += ","; - q.append<T, ID> (val_bind<T> (v3)); + q.append<T, ID> (val_bind<T> (v3), conversion_); q += ","; - q.append<T, ID> (val_bind<T> (v4)); + q.append<T, ID> (val_bind<T> (v4), conversion_); q += ")"; return q; } @@ -75,15 +75,15 @@ namespace odb { query q (table_, column_); q += "IN ("; - q.append<T, ID> (val_bind<T> (v1)); + q.append<T, ID> (val_bind<T> (v1), conversion_); q += ","; - q.append<T, ID> (val_bind<T> (v2)); + q.append<T, ID> (val_bind<T> (v2), conversion_); q += ","; - q.append<T, ID> (val_bind<T> (v3)); + q.append<T, ID> (val_bind<T> (v3), conversion_); q += ","; - q.append<T, ID> (val_bind<T> (v4)); + q.append<T, ID> (val_bind<T> (v4), conversion_); q += ","; - q.append<T, ID> (val_bind<T> (v5)); + q.append<T, ID> (val_bind<T> (v5), conversion_); q += ")"; return q; } @@ -101,7 +101,7 @@ namespace odb if (i != begin) q += ","; - q.append<T, ID> (val_bind<T> (*i)); + q.append<T, ID> (val_bind<T> (*i), conversion_); } q += ")"; return q; |