fix table_item out-of-bounds access problem

This commit is contained in:
ChangerR
2023-03-03 02:43:52 +00:00
committed by ob-robot
parent 2b6734beb3
commit 2ebb61616d

View File

@ -817,8 +817,8 @@ int ObTransformSimplifySet::check_first_stmt_removable(common::ObIArray<ObParent
{ {
int ret = OB_SUCCESS; int ret = OB_SUCCESS;
can_remove = true; can_remove = true;
ObDMLStmt* parent_stmt; ObDMLStmt* parent_stmt = NULL;
TableItem* table_item; TableItem* table_item = NULL;
bool is_dml_table = false; bool is_dml_table = false;
if (parent_stmts.empty()) { if (parent_stmts.empty()) {
// do nothing // do nothing