Ok to push (please fix a typo noted below).
On 04/01/11 17:47, Dmitry Lenev wrote:
> @ sql/sql_base.cc
> - Changed open_temporary_tables() not to pre-open tables from
> the statements prelocking list. Old behavior led to
> unwarranted ER_CANT_REOPEN errors in cases when prepared
> statement which used some table twice, directly and
> indirectly, was re-executed in presence of shadowing
> temporary table. Now, as expected, such statements are
> re-prepared after validation in these cases.
> - Adjusted open_temporary_tables() not to skip TABLE_LIST
> elements with non-zero 'table' pointer. This was not
> really necessary and new behavior allows to catch
> situations in which TABLE_LIST elements were not properly
> reset before statement re-execution or between two
> consequtive calls to this function.