From cf212c1ed64956b745a077e1a8f3d92be396e27d Mon Sep 17 00:00:00 2001 From: Constantin Michael Date: Fri, 22 Jul 2011 10:02:00 +0200 Subject: Make MySQL QString default mapping consistent with other databases --- odb/qt/basic/mysql/default-mapping.hxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/odb/qt/basic/mysql/default-mapping.hxx b/odb/qt/basic/mysql/default-mapping.hxx index e26e73e..ce692bf 100644 --- a/odb/qt/basic/mysql/default-mapping.hxx +++ b/odb/qt/basic/mysql/default-mapping.hxx @@ -9,10 +9,11 @@ #include #include -// By default, map QString to MySQL TEXT for non-id and to VARCHAR(256) for -// id members. MySQL cannot have primary keys of the TEXT type. +// Map QString to MySQL TEXT for non-id and to VARCHAR(256) for id members. +// MySQL cannot have primary key of the TEXT type. Allow NULL values by +// default as QString provides a null representation. // -#pragma db value(QString) type("TEXT") id_type("VARCHAR(256)") +#pragma db value(QString) type("TEXT") id_type("VARCHAR(256)") null // Map QByteArray to MySQL BLOB by default. Allow NULL values by default as // QByteArray provides a null representation. -- cgit v1.1