0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-15 20:31:16 +08:00

Fixed tests (prevent two tests from being executed with MockDb)

This commit is contained in:
rbock 2015-05-30 16:44:10 +02:00
parent 8d356f55ce
commit 947bf9ddd3

View File

@ -196,7 +196,7 @@ int Function(int, char**)
static_assert(not sqlpp::is_numeric_t<TT>::value, "type requirement");
static_assert(not sqlpp::is_text_t<TT>::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<TT>::value, "type requirement");
static_assert(not sqlpp::is_floating_point_t<TT>::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