aboutsummaryrefslogtreecommitdiff
path: root/odb/qt/date-time/mysql/default-mapping.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-07-19 13:42:18 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-07-19 13:42:18 +0200
commit3ccd52b46db124086345f3c7b8e95e435d500903 (patch)
treeb39be3a9c2154a8b35b8ed2e438ce0b9d8cd5891 /odb/qt/date-time/mysql/default-mapping.hxx
parente10e8aab78cd70edc606b475d7feca2f0845f780 (diff)
New design for NULL semantics
Now, instead of being specified as part of the SQL type with the type pragma, there are separate null and not_null pragmas. The not_null pragma was used to control NULL-ness of object pointers. Now the two pragmas are used consistently for object pointers and simple values (and in the future will work for composite values and containers).
Diffstat (limited to 'odb/qt/date-time/mysql/default-mapping.hxx')
-rw-r--r--odb/qt/date-time/mysql/default-mapping.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/odb/qt/date-time/mysql/default-mapping.hxx b/odb/qt/date-time/mysql/default-mapping.hxx
index 250d668..ba94108 100644
--- a/odb/qt/date-time/mysql/default-mapping.hxx
+++ b/odb/qt/date-time/mysql/default-mapping.hxx
@@ -13,16 +13,16 @@
// Map QDate to MySQL DATE by default. QDate provides a null
// representation so allow NULL values by default.
//
-#pragma db value(QDate) type("DATE")
+#pragma db value(QDate) type("DATE") null
// Map QTime to MySQL TIME by default. QTime provides a null
// representation so allow NULL values by default.
//
-#pragma db value(QTime) type("TIME")
+#pragma db value(QTime) type("TIME") null
// Map QDateTime to MySQL DATETIME by default. QDateTime provides a null
// representation so allow NULL values by default.
//
-#pragma db value(QDateTime) type("DATETIME")
+#pragma db value(QDateTime) type("DATETIME") null
#endif // ODB_QT_DATE_TIME_MYSQL_DEFAULT_MAPPING_HXX