0
0
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:
Roland Bock 2013-11-15 10:01:45 +01:00
parent 6db64212b6
commit e7c6f88d23
2 changed files with 4 additions and 4 deletions

View File

@ -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, ',');

View File

@ -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");
}