Added check to prevent multicolumns in sub selects

This commit is contained in:
rbock
2014-06-28 21:02:49 +02:00
parent 7900cba1ca
commit 0f9c1dbfb2
3 changed files with 3 additions and 5 deletions

View File

@@ -290,11 +290,8 @@ int main()
{
auto m = multi_column(t.alpha, t.beta).as(alias::a);
static_assert(not sqlpp::is_expression_t<decltype(m)>::value, "a multi_column is not a value");
#warning: A multicolumn cannot be used if the select is to be used like a table
auto a = select(m).from(t).as(alias::b).a;
//static_assert(not sqlpp::is_expression_t<decltype(a)>::value, "a multi_column is not a value");
}
// Test that result sets with identical name/value combinations have identical types
{
auto a = select(t.alpha);