From 3942c226046831fa20b0aad9d3e31025af8bfd6a Mon Sep 17 00:00:00 2001 From: Monk-Liu <1152761042@qq.com> Date: Tue, 19 Apr 2022 10:33:27 +0800 Subject: [PATCH] [bugfix]: support create table t select ~1; --- src/sql/resolver/expr/ob_raw_expr_printer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sql/resolver/expr/ob_raw_expr_printer.cpp b/src/sql/resolver/expr/ob_raw_expr_printer.cpp index 6212eb1e30..48fcdc8e70 100644 --- a/src/sql/resolver/expr/ob_raw_expr_printer.cpp +++ b/src/sql/resolver/expr/ob_raw_expr_printer.cpp @@ -329,6 +329,8 @@ int ObRawExprPrinter::print(ObOpRawExpr* expr) SET_SYMBOL_IF_EMPTY("not"); case T_OP_NOT_EXISTS: SET_SYMBOL_IF_EMPTY("not exists"); + case T_OP_BIT_NEG: + SET_SYMBOL_IF_EMPTY("~"); case T_OP_EXISTS: { SET_SYMBOL_IF_EMPTY("exists"); if (1 != expr->get_param_count()) { @@ -356,8 +358,6 @@ int ObRawExprPrinter::print(ObOpRawExpr* expr) } case T_OP_AND: SET_SYMBOL_IF_EMPTY("and"); - case T_OP_BIT_NEG: - SET_SYMBOL_IF_EMPTY("~"); case T_OP_OR: { SET_SYMBOL_IF_EMPTY("or"); if (expr->get_param_count() < 2) {