diff options
author | unknown <monty@mysql.com> | 2004-03-30 01:43:45 +0300 |
---|---|---|
committer | unknown <monty@mysql.com> | 2004-03-30 01:43:45 +0300 |
commit | db9fde085fdbdacd48760c0243805e8df8b39a8c (patch) | |
tree | 2e9321d84399227abfeb1918a773a5e85120e553 | |
parent | 619e9cbadd5fa4dc0fa9beb85925c3404676b811 (diff) | |
parent | 989756ab99c61be289d78485ecb46067f1ebe4ae (diff) | |
download | mariadb-git-db9fde085fdbdacd48760c0243805e8df8b39a8c.tar.gz |
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/home/my/mysql-4.1
-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; } |