mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-22779: Crash: Prepared Statement ..., part #2.
For the sake of completeness, call sync_clones in reset_stmt_params, too.
This commit is contained in:
@ -3125,7 +3125,10 @@ static void reset_stmt_params(Prepared_statement *stmt)
|
|||||||
Item_param **item= stmt->param_array;
|
Item_param **item= stmt->param_array;
|
||||||
Item_param **end= item + stmt->param_count;
|
Item_param **end= item + stmt->param_count;
|
||||||
for (;item < end ; ++item)
|
for (;item < end ; ++item)
|
||||||
|
{
|
||||||
(**item).reset();
|
(**item).reset();
|
||||||
|
(**item).sync_clones();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user