From: Date: April 20 2005 7:48am Subject: bk commit into 5.0 tree (gluh:1.1859) BUG#10018 List-Archive: http://lists.mysql.com/internals/24157 X-Bug: 10018 Message-Id: <200504200548.j3K5mOEX003243@eagle.intranet.mysql.r18.ru> Below is the list of changes that have just been committed into a local 5.0 repository of gluh. When gluh does a push these changes will be propagated to the main repository and, within 24 hours after the push, to the public repository. For information on how to access the public repository see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html ChangeSet 1.1859 05/04/20 10:48:17 gluh@stripped +3 -0 Bug #10018: use INFORMATION_SCHEMA works, but show tables in it returns error case insensitive comparing of 'information_shema' word sql/sql_show.cc 1.238 05/04/20 10:47:20 gluh@stripped +2 -1 Bug #10018: use INFORMATION_SCHEMA works, but show tables in it returns error. mysql-test/t/information_schema.test 1.34 05/04/20 10:47:20 gluh@stripped +7 -0 Bug #10018: use INFORMATION_SCHEMA works, but show tables in it returns error. mysql-test/r/information_schema.result 1.47 05/04/20 10:47:20 gluh@stripped +7 -0 Bug #10018: use INFORMATION_SCHEMA works, but show tables in it returns error. # This is a BitKeeper patch. What follows are the unified diffs for the # set of deltas contained in the patch. The rest of the patch, the part # that BitKeeper cares about, is below these diffs. # User: gluh # Host: eagle.intranet.mysql.r18.ru # Root: /home/gluh/MySQL/Bugs/mysql-5.0.10018 --- 1.237/sql/sql_show.cc Sun Apr 17 21:54:27 2005 +++ 1.238/sql/sql_show.cc Wed Apr 20 10:47:20 2005 @@ -1796,7 +1796,8 @@ const char *wild, bool *with_i_schema) { *with_i_schema= 0; - if (!wild || !wild_compare(information_schema_name.str, wild, 0)) + if (!wild || !wild_case_compare(system_charset_info, + information_schema_name.str, wild)) { *with_i_schema= 1; if (files->push_back(thd->strdup(information_schema_name.str))) --- 1.46/mysql-test/r/information_schema.result Thu Apr 14 11:04:11 2005 +++ 1.47/mysql-test/r/information_schema.result Wed Apr 20 10:47:20 2005 @@ -726,3 +726,10 @@ x_float NULL NULL x_double_precision NULL NULL drop table t1; +use INFORMATION_SCHEMA; +show tables like "T%"; +Tables_in_INFORMATION_SCHEMA (T%) +TABLES +TABLE_PRIVILEGES +TABLE_CONSTRAINTS +use test; --- 1.33/mysql-test/t/information_schema.test Thu Apr 14 11:03:09 2005 +++ 1.34/mysql-test/t/information_schema.test Wed Apr 20 10:47:20 2005 @@ -464,3 +464,10 @@ FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME= 't1'; drop table t1; + +# +# Bug #10018 use INFORMATION_SCHEMA works, but show tables in it returns error +# +use INFORMATION_SCHEMA; +show tables like "T%"; +use test;