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 | |
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
-rw-r--r-- | Docs/manual.texi | 6 | ||||
-rw-r--r-- | sql/sql_table.cc | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/Docs/manual.texi b/Docs/manual.texi index 7e3f455e0f8..509f46dab08 100644 --- a/Docs/manual.texi +++ b/Docs/manual.texi @@ -46929,10 +46929,14 @@ not yet 100% confident in this code. @appendixsubsec Changes in release 3.23.53 @itemize @bullet @item +Fixed bug in @code{ALTER TABLE} and @code{RENAME TABLE} when running with +@code{-O lower_case_table_names=1} (typically on windows) when giving the +table name in uppercase. +@item Fixed unlikely core dump with @code{SELECT ... ORDER BY ... LIMIT}. @item Changed @code{AND/OR} to report that they can return NULL. This fixes a -bug in @code{GROUP BY} on @code{AND/OR} expression that return +bug in @code{GROUP BY} on @code{AND/OR} expressions that return @code{NULL}. @item Fixed a bug that @code{OPTIMIZE} of locked and modified MyISAM table, 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); |