[FEAT MERGE]4_1_sql_feature
Co-authored-by: leslieyuchen <leslieyuchen@gmail.com> Co-authored-by: Charles0429 <xiezhenjiang@gmail.com> Co-authored-by: raywill <hustos@gmail.com>
This commit is contained in:
@ -30,10 +30,7 @@ int ObUpdateStmtPrinter::do_print()
|
||||
{
|
||||
int ret = OB_SUCCESS;
|
||||
|
||||
if (OB_UNLIKELY(!is_inited_)) {
|
||||
ret = OB_NOT_INIT;
|
||||
LOG_WARN("not inited!", K(ret));
|
||||
} else if (OB_ISNULL(stmt_)) {
|
||||
if (OB_ISNULL(stmt_)) {
|
||||
ret = OB_ERR_UNEXPECTED;
|
||||
LOG_WARN("stmt should not be NULL", K(ret));
|
||||
} else {
|
||||
@ -68,6 +65,11 @@ int ObUpdateStmtPrinter::print_basic_stmt()
|
||||
if (OB_ISNULL(stmt_)) {
|
||||
ret = OB_ERR_UNEXPECTED;
|
||||
LOG_WARN("stmt_ should not be NULL", K(ret));
|
||||
} else if (OB_FAIL(print_with())) {
|
||||
LOG_WARN("failed to print with", K(ret));
|
||||
} else if ((print_params_.force_print_cte_ || print_params_.print_with_cte_) &&
|
||||
OB_FAIL(print_cte_define())) {
|
||||
LOG_WARN("failed to print cte", K(ret));
|
||||
} else if (OB_FAIL(print_update())) {
|
||||
LOG_WARN("fail to print select", K(ret), K(*stmt_));
|
||||
} else if (OB_FAIL(print_from(false/*not need from, only print table name*/))) {
|
||||
|
||||
Reference in New Issue
Block a user