From f3b915cdc9f6fa89ddc886edfeec7820449bca19 Mon Sep 17 00:00:00 2001 From: rbock Date: Sat, 21 Oct 2017 19:03:01 +0200 Subject: [PATCH] Add new example to custom_query tests --- tests/CustomQuery.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/CustomQuery.cpp b/tests/CustomQuery.cpp index fc8d3ab5..94af9bff 100644 --- a/tests/CustomQuery.cpp +++ b/tests/CustomQuery.cpp @@ -69,5 +69,11 @@ int CustomQuery(int, char* []) auto i = db(c); static_assert(std::is_integral::value, "insert yields an integral value"); + for (const auto& row : + db(custom_query(sqlpp::verbatim("PRAGMA user_version")).with_result_type_of(select(all_of(t))))) + { + (void)row.alpha; + } + return 0; }