Better comment.
This commit is contained in:
parent
928e796e67
commit
19d09a2a9c
@ -1083,7 +1083,11 @@ static void reset_stmt_for_execute(Prepared_statement *stmt)
|
|||||||
tables;
|
tables;
|
||||||
tables= tables->next)
|
tables= tables->next)
|
||||||
{
|
{
|
||||||
tables->table= 0; // safety - nasty init
|
/*
|
||||||
|
Reset old pointers to TABLEs: they are not valid since the tables
|
||||||
|
were closed in the end of previous prepare or execute call.
|
||||||
|
*/
|
||||||
|
tables->table= 0;
|
||||||
tables->table_list= 0;
|
tables->table_list= 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user