1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

ALTER TABLE closes all open HANDLER's for the table in question

fixed error handling in HANDLER ... READ FIRST
This commit is contained in:
serg@serg.mysql.com
2003-02-22 18:00:34 +01:00
parent 55ae7d26f6
commit e7715445f3
2 changed files with 8 additions and 4 deletions

View File

@@ -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);