summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorkonstantin@oak.local <>2004-03-30 02:03:42 +0400
committerkonstantin@oak.local <>2004-03-30 02:03:42 +0400
commit19d09a2a9c8004bf97079fa2b75069ecf350b3ba (patch)
tree7087919dc4bfa9e5f8d6b92b3dd4f0cf1e8cae5e /sql
parent928e796e67ac37a6a07d609eed2917f5ea228911 (diff)
downloadmariadb-git-19d09a2a9c8004bf97079fa2b75069ecf350b3ba.tar.gz
Better comment.
Diffstat (limited to 'sql')
-rw-r--r--sql/sql_prepare.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/sql/sql_prepare.cc b/sql/sql_prepare.cc
index ab136668cfb..0285c1eec2f 100644
--- a/sql/sql_prepare.cc
+++ b/sql/sql_prepare.cc
@@ -1083,7 +1083,11 @@ static void reset_stmt_for_execute(Prepared_statement *stmt)
tables;
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;
}