From 4630bf7f0cbc98e8f2a4cb4e0fd1e88b631d01a7 Mon Sep 17 00:00:00 2001 From: Roland Bock Date: Sun, 21 Jul 2024 19:33:33 +0200 Subject: [PATCH] More type tests --- include/sqlpp11/dynamic.h | 16 --- include/sqlpp11/field_spec.h | 28 ++-- include/sqlpp11/select_column_list.h | 45 ++++-- tests/core/types/CMakeLists.txt | 1 + tests/core/types/arithmetic_expression.cpp | 159 +++++++++++++++++++++ tests/core/types/result_row.cpp | 89 ------------ 6 files changed, 207 insertions(+), 131 deletions(-) create mode 100644 tests/core/types/arithmetic_expression.cpp diff --git a/include/sqlpp11/dynamic.h b/include/sqlpp11/dynamic.h index 39b55b65..5763f7f2 100644 --- a/include/sqlpp11/dynamic.h +++ b/include/sqlpp11/dynamic.h @@ -78,22 +78,6 @@ namespace sqlpp template using remove_dynamic_t = typename remove_dynamic::type; -#warning: Should not turn Expr to into optional, but just the value type - template - struct dynamic_to_optional - { - using type = T; - }; - - template - struct dynamic_to_optional> - { - using type = force_optional_t; - }; - - template - using dynamic_to_optional_t = typename dynamic_to_optional::type; - template Context& serialize(Context& context, const dynamic_t