From 4a5f1f5c8202e4a7833db4614e6cfe47e00be102 Mon Sep 17 00:00:00 2001 From: Constantin Michael Date: Tue, 15 Nov 2011 12:00:37 +0200 Subject: Map QByteArray to Oracle BLOB by default --- odb/qt/basic/oracle/qbyte-array-traits.hxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'odb/qt/basic/oracle/qbyte-array-traits.hxx') diff --git a/odb/qt/basic/oracle/qbyte-array-traits.hxx b/odb/qt/basic/oracle/qbyte-array-traits.hxx index 063d52d..0d63fec 100644 --- a/odb/qt/basic/oracle/qbyte-array-traits.hxx +++ b/odb/qt/basic/oracle/qbyte-array-traits.hxx @@ -156,7 +156,10 @@ namespace odb template <> struct default_type_traits { - static const database_type_id db_type_id = id_blob; + // Allow use of QByteArray in query expressions by default by specifying + // the default type id as RAW. + // + static const database_type_id db_type_id = id_raw; }; } } -- cgit v1.1