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 /sqlite/types | |
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 'sqlite/types')
-rw-r--r-- | sqlite/types/test.hxx | 12 |
1 files changed, 6 insertions, 6 deletions
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 |