mirror of
https://github.com/rbock/sqlpp11.git
synced 2026-01-03 03:30:35 -06:00
Fixed tests (prevent two tests from being executed with MockDb)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user