diff options
author | unknown <serg@serg.mysql.com> | 2003-02-22 18:00:34 +0100 |
---|---|---|
committer | unknown <serg@serg.mysql.com> | 2003-02-22 18:00:34 +0100 |
commit | feb8dc9ee5f114c2a4eb7756e92b7c4d9eedbf1c (patch) | |
tree | 671767109b997b1b5d896fbe8f314a5e775872ea /sql/sql_table.cc | |
parent | 850daeea33e71c82a56907994221af8474f9f651 (diff) | |
download | mariadb-git-feb8dc9ee5f114c2a4eb7756e92b7c4d9eedbf1c.tar.gz |
ALTER TABLE closes all open HANDLER's for the table in question
fixed error handling in HANDLER ... READ FIRST
sql/sql_handler.cc:
fix error handling in HANDLER ... READ FIRST
sql/sql_table.cc:
ALTER TABLE closes all open HANDLER's for the table in question
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r-- | sql/sql_table.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc index 31fcb0be8e3..4c92c35632a 100644 --- a/sql/sql_table.cc +++ b/sql/sql_table.cc @@ -1374,6 +1374,7 @@ int mysql_alter_table(THD *thd,char *new_db, char *new_name, new_db=db; used_fields=create_info->used_fields; + mysql_ha_closeall(thd, table_list); if (!(table=open_ltable(thd,table_list,TL_WRITE_ALLOW_READ))) DBUG_RETURN(-1); |