From 1fc682941868f34300d35e2ff1c4372056a9d424 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 28 Mar 2011 09:53:50 +0200 Subject: Fix bug in NULL pointer handling code --- odb/relational/sqlite/source.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'odb/relational/sqlite/source.cxx') diff --git a/odb/relational/sqlite/source.cxx b/odb/relational/sqlite/source.cxx index 810f384..b74f0cf 100644 --- a/odb/relational/sqlite/source.cxx +++ b/odb/relational/sqlite/source.cxx @@ -280,8 +280,9 @@ namespace relational " > ptr_traits;" << endl; - os << "bool is_null (ptr_traits::null_ptr (" << member << "));" - << "if (!is_null)" + os << "i." << mi.var << "null = ptr_traits::null_ptr (" << + member << ");" + << "if (!i." << mi.var << "null)" << "{" << "const " << type << "& id (" << endl; -- cgit v1.1