mirror of
https://github.com/rbock/sqlpp11.git
synced 2026-01-05 20:50:34 -06:00
Added support for default values and result fields for insert
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user