[to #49833859] fix insert stmt print with alias table name
This commit is contained in:
@ -126,7 +126,7 @@ int ObInsertStmtPrinter::print_into()
|
|||||||
if (OB_ISNULL(table_item = insert_stmt->get_table_item(0))) {
|
if (OB_ISNULL(table_item = insert_stmt->get_table_item(0))) {
|
||||||
ret = OB_ERR_UNEXPECTED;
|
ret = OB_ERR_UNEXPECTED;
|
||||||
LOG_WARN("Invalid table item", K(stmt_->get_table_size()), K(ret));
|
LOG_WARN("Invalid table item", K(stmt_->get_table_size()), K(ret));
|
||||||
} else if (OB_FAIL(print_table(table_item, true))) {
|
} else if (OB_FAIL(print_table(table_item, insert_stmt->get_returning_exprs().count() > 0 ? false : true))) {
|
||||||
LOG_WARN("failed to print table", K(*table_item), K(ret));
|
LOG_WARN("failed to print table", K(*table_item), K(ret));
|
||||||
} else {
|
} else {
|
||||||
DATA_PRINTF("(");
|
DATA_PRINTF("(");
|
||||||
|
|||||||
Reference in New Issue
Block a user