From a6fbbdedb4c1ea2293bc887b359cd4a719d695a9 Mon Sep 17 00:00:00 2001 From: Roland Bock Date: Sun, 27 Oct 2024 12:34:31 +0100 Subject: [PATCH] Minor cleanup --- include/sqlpp11/core/operator/logical_expression.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/include/sqlpp11/core/operator/logical_expression.h b/include/sqlpp11/core/operator/logical_expression.h index 0004af04..1bb618d2 100644 --- a/include/sqlpp11/core/operator/logical_expression.h +++ b/include/sqlpp11/core/operator/logical_expression.h @@ -82,9 +82,8 @@ namespace sqlpp template struct requires_parentheses> : public std::true_type{}; -#warning: rename template - auto serialize_impl(Context& context, const logical_expression& t) -> std::string + auto to_sql_string_impl(Context& context, const logical_expression& t) -> std::string { return operand_to_sql_string(context, t._l) + Operator::symbol + operand_to_sql_string(context, t._r); } @@ -92,7 +91,7 @@ namespace sqlpp template auto to_sql_string(Context& context, const logical_expression& t) -> std::string { - return serialize_impl(context, t); + return to_sql_string_impl(context, t); } template @@ -120,7 +119,7 @@ namespace sqlpp { if (t._r._condition) { - return serialize_impl(context, t); + return to_sql_string_impl(context, t); } // If the dynamic part is inactive ignore it.