diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-07-19 13:42:18 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-07-19 13:42:18 +0200 |
commit | b038ab0cd6335f3e4ec075d1e21f5d7bb89e3ffb (patch) | |
tree | cb79dc28903ba238b180b8687d4cdb2f879afc49 /boost/mysql/date-time | |
parent | 533539cd0a445bb38ac574024361552188efa8e6 (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 'boost/mysql/date-time')
-rw-r--r-- | boost/mysql/date-time/test.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/boost/mysql/date-time/test.hxx b/boost/mysql/date-time/test.hxx index 235607f..b84bf0f 100644 --- a/boost/mysql/date-time/test.hxx +++ b/boost/mysql/date-time/test.hxx @@ -37,11 +37,11 @@ struct object std::vector<boost::gregorian::date> dates; std::vector<boost::posix_time::ptime> times; - // 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 value_type ("TIMESTAMP NULL") + #pragma db value_type ("TIMESTAMP") value_null std::vector<boost::posix_time::ptime> timestamps; std::vector<boost::posix_time::time_duration> durations; |