[CP] Fix bug: in Oracle mode, the prepared statement throws an error -4016.

This commit is contained in:
GongYusen
2024-06-17 22:22:10 +00:00
committed by ob-robot
parent a9fc91b6e3
commit f34f2dd352
2 changed files with 9 additions and 1 deletions

View File

@ -1250,7 +1250,7 @@ int ObResolver::resolve(IsPrepared if_prepared, const ParseNode &parse_tree, ObS
// todo yanli:检查主备库
}
if (OB_SUCC(ret) && stmt->is_dml_stmt()) {
if (OB_SUCC(ret) && stmt->is_dml_stmt() && !params_.session_info_->is_varparams_sql_prepare()) {
ObDMLStmt *dml_stmt = static_cast<ObDMLStmt*>(stmt);
ObRawExprWrapEnumSet enum_set_wrapper(*params_.expr_factory_, params_.session_info_);
if (OB_FAIL(enum_set_wrapper.wrap_enum_set(*dml_stmt))) {