aboutsummaryrefslogtreecommitdiff
path: root/odb/qt/basic/oracle/qbyte-array-traits.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/qt/basic/oracle/qbyte-array-traits.hxx')
-rw-r--r--odb/qt/basic/oracle/qbyte-array-traits.hxx5
1 files changed, 4 insertions, 1 deletions
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<QByteArray>
{
- 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;
};
}
}