Skip to content

Commit e623d24

Browse files
committed
MDEV-22779: Crash: Prepared Statement ..., part #2.
For the sake of completeness, call sync_clones in reset_stmt_params, too.
1 parent 21e7933 commit e623d24

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sql/sql_prepare.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3125,7 +3125,10 @@ static void reset_stmt_params(Prepared_statement *stmt)
31253125
Item_param **item= stmt->param_array;
31263126
Item_param **end= item + stmt->param_count;
31273127
for (;item < end ; ++item)
3128+
{
31283129
(**item).reset();
3130+
(**item).sync_clones();
3131+
}
31293132
}
31303133

31313134

0 commit comments

Comments
 (0)