mirror of
https://github.com/rbock/sqlpp11.git
synced 2026-01-07 05:30:44 -06:00
Fixed detection of NULL in text results
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user