From 72951cb80852683bdd2707031471580620733e2f 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). --- mapping/person.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mapping') diff --git a/mapping/person.hxx b/mapping/person.hxx index ba07ef5..1638ff5 100644 --- a/mapping/person.hxx +++ b/mapping/person.hxx @@ -13,9 +13,9 @@ // In our database boolean values are stored as strings with valid // values being "true" and "false". // -#pragma db value(bool) type("VARCHAR(5) NOT NULL") +#pragma db value(bool) type("VARCHAR(5)") -#pragma db value type("DATE NOT NULL") +#pragma db value type("DATE") class date { public: -- cgit v1.1