mirror of
https://github.com/rbock/sqlpp11.git
synced 2026-04-28 15:09:26 -05:00
Test with boolean and text parameters in prepared query compiles and runs
with mysql
This commit is contained in:
@@ -113,6 +113,12 @@ namespace sqlpp
|
||||
|
||||
operator _cpp_value_type() const { return value(); }
|
||||
|
||||
template<typename Target>
|
||||
void bind(Target& target, size_t index) const
|
||||
{
|
||||
target.bind_boolean_parameter(index, &_value, _is_null);
|
||||
}
|
||||
|
||||
private:
|
||||
bool _trivial_value_is_null;
|
||||
signed char _value;
|
||||
|
||||
@@ -102,6 +102,12 @@ namespace sqlpp
|
||||
|
||||
operator _cpp_value_type() const { return value(); }
|
||||
|
||||
template<typename Target>
|
||||
void bind(Target& target, size_t index) const
|
||||
{
|
||||
target.bind_text_parameter(index, &_value, _is_null);
|
||||
}
|
||||
|
||||
private:
|
||||
bool _trivial_value_is_null;
|
||||
_cpp_value_type _value;
|
||||
|
||||
Reference in New Issue
Block a user