summaryrefslogtreecommitdiff
path: root/sql/table.cc
diff options
context:
space:
mode:
authorunknown <igreenhoe/greenman@anubis.greendragongames.com>2006-07-13 16:35:25 -0700
committerunknown <igreenhoe/greenman@anubis.greendragongames.com>2006-07-13 16:35:25 -0700
commit35bfad1e3db9d955a135035d4af6665f0331e811 (patch)
treeade4a3fc40348d0802ec1bbd31d554eaa91edfd3 /sql/table.cc
parent316577d69537d49d359a1928c6f54194aef19620 (diff)
parent3c2bdb59bc19a62f08e9b778649d9f12a9c87eab (diff)
downloadmariadb-git-35bfad1e3db9d955a135035d4af6665f0331e811.tar.gz
4.1 -> 5.0 merge
client/mysql.cc: Auto merged client/sql_string.h: Auto merged configure.in: Auto merged myisam/mi_create.c: Auto merged mysql-test/r/date_formats.result: Auto merged mysql-test/t/date_formats.test: Auto merged ndb/src/kernel/blocks/dbtup/DbtupMeta.cpp: Auto merged ndb/src/mgmsrv/ConfigInfo.cpp: Auto merged sql/item_strfunc.cc: Auto merged sql/sql_class.cc: Auto merged sql/sql_string.h: Auto merged sql/table.cc: Auto merged
Diffstat (limited to 'sql/table.cc')
-rw-r--r--sql/table.cc17
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