diff options
author | konstantin@oak.local <> | 2004-03-30 02:03:42 +0400 |
---|---|---|
committer | konstantin@oak.local <> | 2004-03-30 02:03:42 +0400 |
commit | 19d09a2a9c8004bf97079fa2b75069ecf350b3ba (patch) | |
tree | 7087919dc4bfa9e5f8d6b92b3dd4f0cf1e8cae5e /sql | |
parent | 928e796e67ac37a6a07d609eed2917f5ea228911 (diff) | |
download | mariadb-git-19d09a2a9c8004bf97079fa2b75069ecf350b3ba.tar.gz |
Better comment.
Diffstat (limited to 'sql')
-rw-r--r-- | sql/sql_prepare.cc | 6 |
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; } |