diff --git a/include/sqlpp11/basic_expression_operators.h b/include/sqlpp11/basic_expression_operators.h index aa9ac7c9..23cfcdbc 100644 --- a/include/sqlpp11/basic_expression_operators.h +++ b/include/sqlpp11/basic_expression_operators.h @@ -59,7 +59,9 @@ namespace sqlpp template using check_rhs_in_operands_t = static_combined_check_t< static_check_t>::value...>::value, - assert_comparison_valid_rhs_operand_t>>; + assert_comparison_valid_rhs_operand_t>, + static_check_t::value...>::value, + assert_comparison_lhs_rhs_differ_t>>; namespace detail {