From b038ab0cd6335f3e4ec075d1e21f5d7bb89e3ffb 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). --- sqlite/types/test.hxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'sqlite') diff --git a/sqlite/types/test.hxx b/sqlite/types/test.hxx index 37190a0..22cde8e 100644 --- a/sqlite/types/test.hxx +++ b/sqlite/types/test.hxx @@ -31,24 +31,24 @@ struct object #pragma db id unsigned long id_; - #pragma db type ("BOOL NOT NULL") + #pragma db type ("BOOL") bool bool_; - #pragma db type ("INTEGER NOT NULL") + #pragma db type ("INTEGER") int integer_; - #pragma db type ("REAL NOT NULL") + #pragma db type ("REAL") double real_; - #pragma db type ("TEXT NOT NULL") + #pragma db type ("TEXT") std::string text_; - #pragma db type ("BLOB NOT NULL") + #pragma db type ("BLOB") buffer blob_; // Test NULL value. // - #pragma db type ("TEXT") + #pragma db type ("TEXT") null string_ptr null_; bool -- cgit v1.1