diff options
author | kostja@bodhi.local <> | 2006-07-11 21:19:57 +0400 |
---|---|---|
committer | kostja@bodhi.local <> | 2006-07-11 21:19:57 +0400 |
commit | e4598dae1f47ea75980414bacd31b41b2e61d9c9 (patch) | |
tree | 282cc5a8f5fb6720588ef04e63fad742387f33e9 /sql/table.cc | |
parent | fbf54f8d726ad5abb0b78035c25a893d730dda2f (diff) | |
parent | 0db71aaf983bbdb1df79c715e11078591789545e (diff) | |
download | mariadb-git-e4598dae1f47ea75980414bacd31b41b2e61d9c9.tar.gz |
Merge bodhi.local:/opt/local/work/tmp_merge
into bodhi.local:/opt/local/work/mysql-5.0-runtime-merge-41
Diffstat (limited to 'sql/table.cc')
-rw-r--r-- | sql/table.cc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/sql/table.cc b/sql/table.cc index 728b98b2d35..55e1575b9a3 100644 --- a/sql/table.cc +++ b/sql/table.cc @@ -2985,6 +2985,23 @@ Field_iterator_table_ref::get_natural_column_ref() return nj_col; } +/* + Cleanup this table for re-execution. + + SYNOPSIS + st_table_list::reinit_before_use() +*/ + +void st_table_list::reinit_before_use(THD * /* thd */) +{ + /* + Reset old pointers to TABLEs: they are not valid since the tables + were closed in the end of previous prepare or execute call. + */ + table= 0; + table_list= 0; +} + /***************************************************************************** ** Instansiate templates |