mirror of
https://github.com/rbock/sqlpp11.git
synced 2024-11-15 20:31:16 +08:00
Minor cleanup
This commit is contained in:
parent
80e573568e
commit
f39582082b
@ -235,6 +235,13 @@ int main()
|
|||||||
static_assert(std::is_same<decltype(a), decltype(b)>::value, "all_of(t) has to be expanded by multi_column");
|
static_assert(std::is_same<decltype(a), decltype(b)>::value, "all_of(t) has to be expanded by multi_column");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Test that select(tab) is expanded in multi_column
|
||||||
|
{
|
||||||
|
auto a = multi_column(sqlpp::alias::a, t);
|
||||||
|
auto b = multi_column(sqlpp::alias::a, t.alpha, t.beta, t.gamma);
|
||||||
|
static_assert(std::is_same<decltype(a), decltype(b)>::value, "t has to be expanded by multi_column");
|
||||||
|
}
|
||||||
|
|
||||||
// Test that a multicolumn is not a value
|
// Test that a multicolumn is not a value
|
||||||
{
|
{
|
||||||
auto m = multi_column(sqlpp::alias::a, t.alpha, t.beta);
|
auto m = multi_column(sqlpp::alias::a, t.alpha, t.beta);
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
# to be called from the sqlpp11 folder
|
|
||||||
clang++ -std=c++11 -stdlib=libc++ examples/SelectTest.cpp -Iinclude
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user