diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-01-25 12:44:16 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-01-25 12:44:16 +0200 |
commit | 3eee63801cbe833f6557d6f85c5778b6209140be (patch) | |
tree | b8259f4fb39bec503709fd915fd258efcdecae31 | |
parent | 89de275db2b77d0abf9fa1ec066ef11e262c88af (diff) |
By default map std::array<char, N> to string instead of binary
-rw-r--r-- | common/query/array/driver.cxx | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/common/query/array/driver.cxx b/common/query/array/driver.cxx index 2bda0a9..c71c25a 100644 --- a/common/query/array/driver.cxx +++ b/common/query/array/driver.cxx @@ -24,19 +24,14 @@ using namespace odb::core; #if defined(DATABASE_MYSQL) const odb::mysql::database_type_id bt = odb::mysql::id_blob; -const odb::mysql::database_type_id st = odb::mysql::id_string; #elif defined(DATABASE_SQLITE) const odb::sqlite::database_type_id bt = odb::sqlite::id_blob; -const odb::sqlite::database_type_id st = odb::sqlite::id_text; #elif defined(DATABASE_PGSQL) const odb::pgsql::database_type_id bt = odb::pgsql::id_bytea; -const odb::pgsql::database_type_id st = odb::pgsql::id_string; #elif defined(DATABASE_ORACLE) const odb::oracle::database_type_id bt = odb::oracle::id_raw; -const odb::oracle::database_type_id st = odb::oracle::id_string; #elif defined(DATABASE_MSSQL) const odb::mssql::database_type_id bt = odb::mssql::id_binary; -const odb::mssql::database_type_id st = odb::mssql::id_string; #else # error unknown database #endif @@ -134,8 +129,8 @@ main (int argc, char* argv[]) assert (size (db->query<object> (query::a == a)) == 1); assert (size (db->query<object> (query::a == query::_val (a))) == 1); assert (size (db->query<object> (query::a == query::_ref (a))) == 1); - assert (size (db->query<object> ("a = " + query::_val<st> (a))) == 1); - assert (size (db->query<object> ("a = " + query::_ref<st> (a))) == 1); + assert (size (db->query<object> ("a = " + query::_val (a))) == 1); + assert (size (db->query<object> ("a = " + query::_ref (a))) == 1); #endif // char |