diff options
author | Georgi Kodinov <joro@sun.com> | 2009-01-05 20:47:28 +0200 |
---|---|---|
committer | Georgi Kodinov <joro@sun.com> | 2009-01-05 20:47:28 +0200 |
commit | 6ff7a3264f83b7f39888bd3e1f08e2862828c28e (patch) | |
tree | aa6d2d0c72b1f0b3fddbc88919398b4539d9028e /sql/sql_show.cc | |
parent | f97ef7a40e45183a68471ab2267c451c3ecb4b1b (diff) | |
parent | 374f49b2629114a9473268da4321af405a9d2394 (diff) | |
download | mariadb-git-6ff7a3264f83b7f39888bd3e1f08e2862828c28e.tar.gz |
merged 5.0-bugteam -> 5.1-bugteam
Diffstat (limited to 'sql/sql_show.cc')
-rw-r--r-- | sql/sql_show.cc | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc index cceba8a4935..3c4dc103ddd 100644 --- a/sql/sql_show.cc +++ b/sql/sql_show.cc @@ -468,17 +468,11 @@ find_files(THD *thd, List<LEX_STRING> *files, const char *db, #ifndef NO_EMBEDDED_ACCESS_CHECKS uint col_access=thd->col_access; #endif - uint wild_length= 0; TABLE_LIST table_list; DBUG_ENTER("find_files"); - if (wild) - { - if (!wild[0]) - wild= 0; - else - wild_length= strlen(wild); - } + if (wild && !wild[0]) + wild=0; bzero((char*) &table_list,sizeof(table_list)); @@ -543,11 +537,8 @@ find_files(THD *thd, List<LEX_STRING> *files, const char *db, { if (lower_case_table_names) { - if (my_wildcmp(files_charset_info, - uname, uname + file_name_len, - wild, wild + wild_length, - wild_prefix, wild_one, wild_many)) - continue; + if (wild_case_compare(files_charset_info, uname, wild)) + continue; } else if (wild_compare(uname, wild, 0)) continue; |