mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
After merge fixes
Added more DBUG statements Ensure that we are comparing end space with BINARY strings Use 'any_db' instead of '' to mean any database. (For HANDLER command) Only strip ' ' when comparing CHAR, not other space-like characters (like \t)
This commit is contained in:
@ -288,12 +288,12 @@ static TABLE **find_table_ptr_by_name(THD *thd, const char *db,
|
||||
TABLE **ptr;
|
||||
|
||||
DBUG_ASSERT(db);
|
||||
dblen= *db ? strlen(db)+1 : 0;
|
||||
dblen= strlen(db);
|
||||
ptr= &(thd->handler_tables);
|
||||
|
||||
for (TABLE *table= *ptr; table ; table= *ptr)
|
||||
{
|
||||
if ((!dblen || !memcmp(table->table_cache_key, db, dblen)) &&
|
||||
if ((db == any_db || !memcmp(table->table_cache_key, db, dblen)) &&
|
||||
!my_strcasecmp(system_charset_info,
|
||||
(is_alias ? table->table_name : table->real_name),
|
||||
table_name))
|
||||
|
Reference in New Issue
Block a user