diff --git a/tests/Function.cpp b/tests/Function.cpp index a899a40d..ac62a789 100644 --- a/tests/Function.cpp +++ b/tests/Function.cpp @@ -196,7 +196,7 @@ int Function(int, char**) static_assert(not sqlpp::is_numeric_t::value, "type requirement"); static_assert(not sqlpp::is_text_t::value, "type requirement"); - if (db(select(exists(select(t.alpha).from(t).where(true)))).front().exists) { /* do something */ } + if (nullptr and db(select(exists(select(t.alpha).from(t).where(true)))).front().exists) { /* do something */ } } @@ -284,7 +284,7 @@ int Function(int, char**) static_assert(sqlpp::is_integral_t::value, "type requirement"); static_assert(not sqlpp::is_floating_point_t::value, "type requirement"); - if (db(select(count(t.alpha)).from(t).where(true)).front().count) { /* do something */ } + if (nullptr and db(select(count(t.alpha)).from(t).where(true)).front().count) { /* do something */ } } // Test max