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:
parent
8d356f55ce
commit
947bf9ddd3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user