Allow dynamic sort order

This commit is contained in:
Andreas Sommer
2016-09-16 19:30:17 +02:00
parent 873beccc15
commit 609766a9fe
4 changed files with 20 additions and 11 deletions
+1
View File
@@ -160,6 +160,7 @@ int Select(int, char* [])
s.offset.set(3u);
s.group_by.add(t.beta);
s.order_by.add(t.beta.asc());
s.order_by.add(t.delta.order(sqlpp::sort_type::desc));
for (const auto& row : db(s))
{
int64_t a = row.alpha;