Added support for default values and result fields for insert

This commit is contained in:
rbock
2014-08-11 19:17:42 +02:00
parent 34e64b50d6
commit 27649b3af2
9 changed files with 119 additions and 17 deletions

View File

@@ -106,5 +106,12 @@ int main()
std::cerr << x.alpha << std::endl;
}
// Check that a prepared select is default-constructible
{
auto s = select(all_of(t)).from(t).where((t.beta.like(parameter(t.beta)) and t.alpha == parameter(t.alpha)) or t.gamma != parameter(t.gamma));
using P = decltype(db.prepare(s));
P p;
}
return 0;
}