From d41e77d2c117854f8e4da7981db49eb6b43e94b5 Mon Sep 17 00:00:00 2001 From: obdev Date: Wed, 2 Nov 2022 23:10:37 +0000 Subject: [PATCH] Fix a stmt print bug --- src/sql/ob_dml_stmt_printer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sql/ob_dml_stmt_printer.cpp b/src/sql/ob_dml_stmt_printer.cpp index 37923c5436..000edf834c 100644 --- a/src/sql/ob_dml_stmt_printer.cpp +++ b/src/sql/ob_dml_stmt_printer.cpp @@ -546,7 +546,8 @@ int ObDMLStmtPrinter::print_fetch() } } //fetch only/with ties - if (OB_SUCC(ret)) { + if (OB_SUCC(ret) && + (NULL != stmt_->get_limit_expr() || NULL != stmt_->get_limit_percent_expr()) ) { if (stmt_->is_fetch_with_ties()) { DATA_PRINTF(" with ties"); } else { -- GitLab