aboutsummaryrefslogtreecommitdiff
path: root/sqlite/types
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-09-04 11:22:07 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-09-04 11:22:07 +0200
commitc77b0419f08708a205acab088b7c95c839b38cfc (patch)
tree1114cbad0fc7152437c7dd5a3ff2b65364b5823d /sqlite/types
parentbb48c54f1080874f5a10907714f5fbae0b985ce9 (diff)
NULL handling improvements
Add support for specifying NULL-ness for types with built-in mapping. Handle Oracle [N]VARCHAR2 and SQLite FLOAT oddities using this mechanism instead of overriding it at the schema generation level. Also use the is_null argument that is passed to value_traits::init_image() to indicate whether the value can be NULL.
Diffstat (limited to 'sqlite/types')
-rw-r--r--sqlite/types/test.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sqlite/types/test.hxx b/sqlite/types/test.hxx
index 7ed1a8c..897590d 100644
--- a/sqlite/types/test.hxx
+++ b/sqlite/types/test.hxx
@@ -38,7 +38,7 @@ struct object
#pragma db type("REAL")
double real_;
- #pragma db type("REAL") null
+ #pragma db type("REAL")
double nan_;
#pragma db type("TEXT")