mirror of
https://github.com/rbock/sqlpp11.git
synced 2024-11-15 20:31:16 +08:00
Remove clang warning for in() and is_null()
This commit is contained in:
parent
6db64212b6
commit
e7c6f88d23
@ -76,8 +76,8 @@ namespace sqlpp
|
||||
template<typename Db>
|
||||
void serialize(std::ostream& os, Db& db) const
|
||||
{
|
||||
static_assert(NotInverted and Db::_supports_in
|
||||
or _inverted and Db::_supports_not_in, "in() and/or not_in() not supported by current database");
|
||||
static_assert((NotInverted and Db::_supports_in)
|
||||
or (_inverted and Db::_supports_not_in), "in() and/or not_in() not supported by current database");
|
||||
_operand.serialize(os, db);
|
||||
os << (_inverted ? " NOT IN(" : " IN(");
|
||||
detail::serialize_tuple(os, db, _args, ',');
|
||||
|
@ -73,8 +73,8 @@ namespace sqlpp
|
||||
template<typename Db>
|
||||
void serialize(std::ostream& os, Db& db) const
|
||||
{
|
||||
static_assert(NotInverted and Db::_supports_is_null
|
||||
or _inverted and Db::_supports_is_not_null, "is_null() and/or is_not_null() not supported by current database");
|
||||
static_assert((NotInverted and Db::_supports_is_null)
|
||||
or (_inverted and Db::_supports_is_not_null), "is_null() and/or is_not_null() not supported by current database");
|
||||
_operand.serialize(os, db);
|
||||
os << (_inverted ? " IS NOT NULL" : " IS NULL");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user