From feb8dc9ee5f114c2a4eb7756e92b7c4d9eedbf1c Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 22 Feb 2003 18:00:34 +0100 Subject: 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 --- sql/sql_table.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'sql/sql_table.cc') 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); -- cgit v1.2.1 From 6d535030870ec158630a785d334ab4b710fdc523 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 26 Feb 2003 13:34:35 +0400 Subject: set_var.cc, sql_table.cc, handler.cc, field.cc: Less default_charset_info sql/field.cc: Less default_charset_info sql/handler.cc: Less default_charset_info sql/sql_table.cc: Less default_charset_info sql/set_var.cc: Less default_charset_info --- sql/sql_table.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql/sql_table.cc') diff --git a/sql/sql_table.cc b/sql/sql_table.cc index 360b6a0bdd3..699818b19fd 100644 --- a/sql/sql_table.cc +++ b/sql/sql_table.cc @@ -247,7 +247,7 @@ int mysql_rm_table_part2(THD *thd, TABLE_LIST *tables, bool if_exists, { if (wrong_tables.length()) wrong_tables.append(','); - wrong_tables.append(String(table->real_name,default_charset_info)); + wrong_tables.append(String(table->real_name,system_charset_info)); } } thd->tmp_table_used= tmp_table_deleted; -- cgit v1.2.1