From 947bf9ddd32092e8e375e0b7addeb95f733bdb0f Mon Sep 17 00:00:00 2001 From: rbock Date: Sat, 30 May 2015 16:44:10 +0200 Subject: [PATCH] Fixed tests (prevent two tests from being executed with MockDb) --- tests/Function.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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