[bugfix]: support create table t select ~1;

This commit is contained in:
Monk-Liu
2022-04-19 10:33:27 +08:00
committed by wangzelin.wzl
parent 2934fef1c7
commit 3942c22604

View File

@ -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) {