diff options
author | monty@mashka.mysql.fi <> | 2002-09-20 14:05:18 +0300 |
---|---|---|
committer | monty@mashka.mysql.fi <> | 2002-09-20 14:05:18 +0300 |
commit | cb8580a2cd0098c9e0ee5f2a6b30ee3e68978f9e (patch) | |
tree | d4c1c24287ff9b73015dccba9705de179966318b /sql/lock.cc | |
parent | 76d7ab0ad2b57e843ea05e1e10ebd6ddb41339d1 (diff) | |
download | mariadb-git-cb8580a2cd0098c9e0ee5f2a6b30ee3e68978f9e.tar.gz |
Changed table_list->name -> table_list->alias to find places where we where using alias instead of table_name.
This should fix some issues where --lower-case-table-names doesn't work properly under windows.
Diffstat (limited to 'sql/lock.cc')
-rw-r--r-- | sql/lock.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/lock.cc b/sql/lock.cc index ea627207e42..aed0e1988ea 100644 --- a/sql/lock.cc +++ b/sql/lock.cc @@ -470,7 +470,7 @@ int lock_table_name(THD *thd, TABLE_LIST *table_list) DBUG_ENTER("lock_table_name"); safe_mutex_assert_owner(&LOCK_open); - key_length=(uint) (strmov(strmov(key,table_list->db)+1,table_list->name) + key_length=(uint) (strmov(strmov(key,table_list->db)+1,table_list->real_name) -key)+ 1; /* Only insert the table if we haven't insert it already */ @@ -499,7 +499,7 @@ int lock_table_name(THD *thd, TABLE_LIST *table_list) my_free((gptr) table,MYF(0)); DBUG_RETURN(-1); } - if (remove_table_from_cache(thd, table_list->db, table_list->name)) + if (remove_table_from_cache(thd, table_list->db, table_list->real_name)) DBUG_RETURN(1); // Table is in use DBUG_RETURN(0); } |