[Commits] 104772e7ccd: MDEV-22779: Crash: Prepared Statement ..., part #2.
revision-id: 104772e7ccdc302fc25a206b1c7b0da186b198a1 (mariadb-10.2.31-274-g104772e7ccd) parent(s): 0f9542ee33c6f0582d60b2244db8733281ecbb46 author: Sergei Petrunia committer: Sergei Petrunia timestamp: 2020-06-13 23:28:09 +0300 message: MDEV-22779: Crash: Prepared Statement ..., part #2. For the sake of completeness, call sync_clones in reset_stmt_params, too. --- sql/sql_prepare.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sql/sql_prepare.cc b/sql/sql_prepare.cc index 79d18fcb799..f0c9f818f87 100644 --- a/sql/sql_prepare.cc +++ b/sql/sql_prepare.cc @@ -3125,7 +3125,10 @@ static void reset_stmt_params(Prepared_statement *stmt) Item_param **item= stmt->param_array; Item_param **end= item + stmt->param_count; for (;item < end ; ++item) + { (**item).reset(); + (**item).sync_clones(); + } }
participants (1)
-
Sergei Petrunia