From 7b3d9e25669c54b92efe26ccb201d2e52aa053d2 Mon Sep 17 00:00:00 2001 From: LiuYoung00 Date: Mon, 12 Dec 2022 10:38:02 +0000 Subject: [PATCH] [to #46485897]arraybinding not support reroute --- src/observer/mysql/obmp_stmt_prexecute.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/observer/mysql/obmp_stmt_prexecute.cpp b/src/observer/mysql/obmp_stmt_prexecute.cpp index 6ea305356e..cea7dccffd 100644 --- a/src/observer/mysql/obmp_stmt_prexecute.cpp +++ b/src/observer/mysql/obmp_stmt_prexecute.cpp @@ -279,6 +279,10 @@ int ObMPStmtPrexecute::before_process() stmt_type_ = ps_session_info->get_stmt_type(); if (is_arraybinding_has_result_type(stmt_type_) && iteration_count_ > 1) { set_arraybounding(true); + if (get_ctx().can_reroute_sql_) { + get_ctx().can_reroute_sql_ = false; + LOG_INFO("arraybinding not support reroute sql."); + } // only init param_store // array_binding_row_ and array_binding_columns_ will init later OZ (init_arraybinding_paramstore(*allocator_)); -- GitLab