fix stmt print ignore hint bug

This commit is contained in:
obdev
2023-03-16 00:43:36 +00:00
committed by ob-robot
parent 1e1dd2761a
commit 00f87235c6
3 changed files with 6 additions and 0 deletions

View File

@ -112,6 +112,7 @@ int ObCreateTableExecutor::prepare_ins_arg(ObCreateTableStmt &stmt,
obj_print_params,
param_store,
true);
select_stmt_printer.set_is_root(true); // print hint as root stmt
if (OB_ISNULL(buf)) {
ret = OB_ALLOCATE_MEMORY_FAILED;
LOG_ERROR("allocate memory failed");