From e0cfcb1f9e9ab1b468189a5ee45c46f7f22bd174 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 19 Jul 2011 13:42:18 +0200 Subject: 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). --- odb/boost/date-time/mysql/gregorian-mapping.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'odb/boost/date-time/mysql/gregorian-mapping.hxx') diff --git a/odb/boost/date-time/mysql/gregorian-mapping.hxx b/odb/boost/date-time/mysql/gregorian-mapping.hxx index 3ebe5e3..7816b9c 100644 --- a/odb/boost/date-time/mysql/gregorian-mapping.hxx +++ b/odb/boost/date-time/mysql/gregorian-mapping.hxx @@ -12,6 +12,6 @@ // By default map boost::gregorian::date to MySQL DATE. We use the // NULL value to represent not_a_date_time. // -#pragma db value(boost::gregorian::date) type("DATE") +#pragma db value(boost::gregorian::date) type("DATE") null #endif // ODB_BOOST_DATE_TIME_MYSQL_GREGORIAN_MAPPING_HXX -- cgit v1.1