mirror of
https://github.com/rbock/sqlpp11.git
synced 2026-04-30 16:09:30 -05:00
Made from() testable with portable static asserts, added tests
Added cross_join_t, simplifying join a lot
This commit is contained in:
@@ -89,6 +89,10 @@ namespace
|
||||
// Try non-boolean expression
|
||||
where_static_check<sqlpp::assert_where_boolean_expression_t>(t.alpha);
|
||||
|
||||
// Try builtin bool
|
||||
where_static_check<sqlpp::assert_where_not_cpp_bool_t>(true);
|
||||
where_static_check<sqlpp::assert_where_not_cpp_bool_t>(17 > 3);
|
||||
|
||||
// Try some other types as expressions
|
||||
where_static_check<sqlpp::assert_where_boolean_expression_t>("true");
|
||||
where_static_check<sqlpp::assert_where_boolean_expression_t>(17);
|
||||
@@ -116,6 +120,10 @@ namespace
|
||||
// Try non-boolean expression
|
||||
where_dynamic_check<sqlpp::assert_where_boolean_expression_t>(t.alpha);
|
||||
|
||||
// Try builtin bool
|
||||
where_dynamic_check<sqlpp::assert_where_not_cpp_bool_t>(true);
|
||||
where_dynamic_check<sqlpp::assert_where_not_cpp_bool_t>(17 > 3);
|
||||
|
||||
// Try some other types as expressions
|
||||
where_dynamic_check<sqlpp::assert_where_boolean_expression_t>("true");
|
||||
where_dynamic_check<sqlpp::assert_where_boolean_expression_t>(17);
|
||||
|
||||
Reference in New Issue
Block a user