summaryrefslogtreecommitdiff
path: root/sql/table.cc
diff options
context:
space:
mode:
authorunknown <konstantin@bodhi.netgear>2006-07-07 00:01:05 +0400
committerunknown <konstantin@bodhi.netgear>2006-07-07 00:01:05 +0400
commit4cb0659de2b9d434cfe92b48b409dadee62fa7df (patch)
tree14d8476050b478afd1d750ba8e6cfc761ada2f8c /sql/table.cc
parent337310a96c2268800a03116b0b40a05f0137ba32 (diff)
parent8995277acc05f9998e9f7a24aa8cb9e1d917945e (diff)
downloadmariadb-git-4cb0659de2b9d434cfe92b48b409dadee62fa7df.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
into bodhi.netgear:/opt/local/work/mysql-4.1-19399 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 8ac64ac198d..29e7d5ebf26 100644
--- a/sql/table.cc
+++ b/sql/table.cc
@@ -1544,6 +1544,23 @@ db_type get_table_type(const char *name)
DBUG_RETURN(ha_checktype((enum db_type) (uint) *(head+3)));
}
+/*
+ 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