summaryrefslogtreecommitdiff
path: root/odb/relational/source.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/relational/source.hxx')
-rw-r--r--odb/relational/source.hxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/odb/relational/source.hxx b/odb/relational/source.hxx
index 3ad463b..21954e0 100644
--- a/odb/relational/source.hxx
+++ b/odb/relational/source.hxx
@@ -1298,7 +1298,11 @@ namespace relational
else
{
type = mi.fq_type ();
- os << "bool is_null;";
+
+ // Indicate to the value_traits whether this column can be NULL.
+ //
+ os << "bool is_null (" <<
+ (null (mi.m, key_prefix_) ? "true" : "false") << ");";
}
if (comp)