From 3eee63801cbe833f6557d6f85c5778b6209140be Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 25 Jan 2013 12:44:16 +0200 Subject: By default map std::array to string instead of binary --- common/query/array/driver.cxx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'common') 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 (query::a == a)) == 1); assert (size (db->query (query::a == query::_val (a))) == 1); assert (size (db->query (query::a == query::_ref (a))) == 1); - assert (size (db->query ("a = " + query::_val (a))) == 1); - assert (size (db->query ("a = " + query::_ref (a))) == 1); + assert (size (db->query ("a = " + query::_val (a))) == 1); + assert (size (db->query ("a = " + query::_ref (a))) == 1); #endif // char -- cgit v1.1