Fixed detection of NULL in text results

This commit is contained in:
rbock
2017-01-28 11:28:54 +01:00
parent d1a3222d56
commit 3d28a92a6d

View File

@@ -47,7 +47,7 @@ namespace sqlpp
size_t len{};
target._bind_text_result(index, &text, &len);
this->_value = {text, len};
this->_is_null = (len == 0);
this->_is_null = (text == nullptr);
}
template <typename Target>
@@ -57,7 +57,7 @@ namespace sqlpp
size_t len{};
target._post_bind_text_result(index, &text, &len);
this->_value = {text, len};
this->_is_null = (len == 0);
this->_is_null = (text == nullptr);
}
};