to issue<50328041>:support kill stmt in pl
This commit is contained in:
@ -2338,12 +2338,6 @@ int ObSPIService::prepare_dynamic(ObPLExecCtx *ctx,
|
||||
}
|
||||
|
||||
if (OB_SUCC(ret)) {
|
||||
if (!ObStmt::is_dynamic_supported_stmt(stmt_type)) {
|
||||
// Some stmt type is dangerous and not allowed in Oracle, so we must forbid it.
|
||||
ret = OB_NOT_SUPPORTED;
|
||||
LOG_WARN("Statement type not allowed in dynamic sql", K(ret), K(stmt_type), K(sql_str));
|
||||
LOG_USER_ERROR(OB_NOT_SUPPORTED, "Statement not allowed in dynamic sql,");
|
||||
} else {
|
||||
int64_t exec_param_cnt = ObStmt::is_dml_stmt(stmt_type)
|
||||
? pl_prepare_result.result_set_->get_external_params().count()
|
||||
: pl_prepare_result.result_set_->get_param_fields()->count();
|
||||
@ -2379,7 +2373,6 @@ int ObSPIService::prepare_dynamic(ObPLExecCtx *ctx,
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (OB_SUCC(ret)) {
|
||||
bool remove_into = false;
|
||||
|
||||
Reference in New Issue
Block a user