aboutsummaryrefslogtreecommitdiff
path: root/qt
diff options
context:
space:
mode:
Diffstat (limited to 'qt')
-rw-r--r--qt/common/smart-ptr/test.hxx2
-rw-r--r--qt/mysql/date-time/test.hxx8
2 files changed, 5 insertions, 5 deletions
diff --git a/qt/common/smart-ptr/test.hxx b/qt/common/smart-ptr/test.hxx
index 06c05fa..0a4ce03 100644
--- a/qt/common/smart-ptr/test.hxx
+++ b/qt/common/smart-ptr/test.hxx
@@ -30,7 +30,7 @@ struct cont
typedef std::vector<QLazyWeakPointer<obj> > obj_list;
- #pragma db inverse(c) not_null
+ #pragma db inverse(c) value_not_null
obj_list o;
};
diff --git a/qt/mysql/date-time/test.hxx b/qt/mysql/date-time/test.hxx
index b40f45f..dd0f640 100644
--- a/qt/mysql/date-time/test.hxx
+++ b/qt/mysql/date-time/test.hxx
@@ -42,11 +42,11 @@ struct object
QDate date;
QDateTime date_time;
- // Specify NULL explicitly to suppress auto-initialization and
- // auto-update characteristics of TIMESTAMP datatype, and to allow
- // NULL values.
+ // Make timestamp NULL-able to suppress the auto-initialization and
+ // auto-update characteristics of the TIMESTAMP datatype, and to
+ // allow NULL values.
//
- #pragma db type("TIMESTAMP NULL")
+ #pragma db type("TIMESTAMP") null
QDateTime timestamp;
QTime time;