[to #50537108]fix bug trigger error when exist virtual column and udf at the same time

This commit is contained in:
seuwebber
2023-07-25 10:18:39 +00:00
committed by ob-robot
parent 2b6ec94442
commit 3ec3d5bcc5

View File

@ -685,7 +685,7 @@ int ObOptimizer::check_whether_contain_nested_sql(const ObDMLStmt &stmt)
if (OB_FAIL(del_upd_stmt->get_dml_table_infos(table_infos))) {
LOG_WARN("failed to get dml table infos", K(ret));
}
for (int64_t i = 0; OB_SUCC(ret) && !ctx_.contain_nested_sql() && i < table_infos.count(); ++i) {
for (int64_t i = 0; OB_SUCC(ret) && i < table_infos.count(); ++i) {
const ObDmlTableInfo* table_info = table_infos.at(i);
ObSchemaGetterGuard *schema_guard = ctx_.get_schema_guard();
const ObTableSchema *table_schema = nullptr;