[FOREIGN KEY] fix the bug about meet invalid conflict during checking child table which without index

This commit is contained in:
YangEfei
2023-09-14 23:47:53 +00:00
committed by ob-robot
parent 098c6384d4
commit f00019cb7c
19 changed files with 307 additions and 184 deletions

View File

@ -4437,6 +4437,17 @@ bool ObSQLUtils::is_fk_nested_sql(ObExecContext *cur_ctx)
return bret;
}
bool ObSQLUtils::is_iter_uncommitted_row(ObExecContext *cur_ctx)
{
bool bret = false;
if (cur_ctx != nullptr &&
cur_ctx->get_parent_ctx() != nullptr &&
cur_ctx->get_parent_ctx()->get_das_ctx().iter_uncommitted_row_) {
bret = true;
}
return bret;
}
//notice: if a SQL is triggered by a PL defined as an autonomous transaction,
//then it is not nested sql, nor is it restricted by the constraints of nested sql
bool ObSQLUtils::is_nested_sql(ObExecContext *cur_ctx)