mirror of
https://github.com/rbock/sqlpp11.git
synced 2026-01-05 12:40:40 -06:00
Fixed a bunch of missing initializations
This commit is contained in:
@@ -32,7 +32,7 @@ MockDb db;
|
||||
|
||||
int main()
|
||||
{
|
||||
test::TabBar t;
|
||||
const auto t = test::TabBar{};
|
||||
|
||||
count(count(t.alpha));
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ MockDb db;
|
||||
|
||||
int main()
|
||||
{
|
||||
test::TabBar t;
|
||||
const auto t = test::TabBar{};
|
||||
|
||||
max(max(t.alpha));
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ MockDb db;
|
||||
|
||||
int main()
|
||||
{
|
||||
test::TabBar t;
|
||||
const auto t = test::TabBar{};
|
||||
|
||||
insert_into(t).set(t.alpha = 7, t.gamma = false, t.beta = "alpha must not be set");
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ MockDb db;
|
||||
|
||||
int main()
|
||||
{
|
||||
test::TabBar t;
|
||||
const auto t = test::TabBar{};
|
||||
|
||||
update(t).set(t.alpha = 7, t.gamma = false, t.beta = "alpha must not be set");
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ EnforceDb edb{};
|
||||
|
||||
int main()
|
||||
{
|
||||
test::TabBar t;
|
||||
const auto t = test::TabBar{};
|
||||
|
||||
static_assert(sqlpp::can_be_null_t<decltype(t.alpha)>::value, "t.alpha can be null");
|
||||
static_assert(not sqlpp::null_is_trivial_value_t<decltype(t.alpha)>::value, "t.alpha does not say null_is_trivial");
|
||||
|
||||
@@ -32,7 +32,7 @@ MockDb db;
|
||||
|
||||
int main()
|
||||
{
|
||||
test::TabBar t;
|
||||
const auto t = test::TabBar{};
|
||||
|
||||
insert_into(t).set(t.beta = "need also to insert gamma");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user