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 | 3ccd52b46db124086345f3c7b8e95e435d500903 (patch) | |
tree | b39be3a9c2154a8b35b8ed2e438ce0b9d8cd5891 /odb/qt/basic/sqlite/default-mapping.hxx | |
parent | e10e8aab78cd70edc606b475d7feca2f0845f780 (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 'odb/qt/basic/sqlite/default-mapping.hxx')
-rw-r--r-- | odb/qt/basic/sqlite/default-mapping.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/odb/qt/basic/sqlite/default-mapping.hxx b/odb/qt/basic/sqlite/default-mapping.hxx index cc04ddd..2526121 100644 --- a/odb/qt/basic/sqlite/default-mapping.hxx +++ b/odb/qt/basic/sqlite/default-mapping.hxx @@ -12,11 +12,11 @@ // Map QString to SQLite TEXT by default. Allow NULL values by default as // QString provides a null representation. // -#pragma db value(QString) type("TEXT") +#pragma db value(QString) type("TEXT") null // Map QByteArray to SQLite BLOB by default. Allow NULL values by default as // QByteArray provides a null representation. // -#pragma db value(QByteArray) type("BLOB") +#pragma db value(QByteArray) type("BLOB") null #endif // ODB_QT_BASIC_SQLITE_DEFAULT_MAPPING_HXX |