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; }