diff options
author | unknown <monty@mashka.mysql.fi> | 2002-09-16 15:24:54 +0300 |
---|---|---|
committer | unknown <monty@mashka.mysql.fi> | 2002-09-16 15:24:54 +0300 |
commit | 6f8b510a2b96637ecf7aa52353f1367212140cf8 (patch) | |
tree | 5867897dd64aa9d26f6a3d79983110a9879ec63d /sql/sql_table.cc | |
parent | ca851d2011a9b6710d6a45a611c8c7a9a387287e (diff) | |
download | mariadb-git-6f8b510a2b96637ecf7aa52353f1367212140cf8.tar.gz |
Fixed bug in ALTER TABLE and RENAME TABLE when running with lower-case-table-names.
Docs/manual.texi:
changelog
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r-- | sql/sql_table.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc index 2bb46b5c47d..e947de553cf 100644 --- a/sql/sql_table.cc +++ b/sql/sql_table.cc @@ -779,7 +779,7 @@ bool close_cached_table(THD *thd,TABLE *table) #if defined(USING_TRANSACTIONS) || defined( __WIN__) || defined( __EMX__) || !defined(OS2) /* Wait until all there are no other threads that has this table open */ while (remove_table_from_cache(thd,table->table_cache_key, - table->table_name)) + table->real_name)) { dropping_tables++; (void) pthread_cond_wait(&COND_refresh,&LOCK_open); @@ -787,7 +787,7 @@ bool close_cached_table(THD *thd,TABLE *table) } #else (void) remove_table_from_cache(thd,table->table_cache_key, - table->table_name); + table->real_name); #endif /* When lock on LOCK_open is freed other threads can continue */ pthread_cond_broadcast(&COND_refresh); |