From 629aa8071dca494ea0c4c98d40340d2712934237 Mon Sep 17 00:00:00 2001
From: "evgen@sunlight.local" <>
Date: Fri, 2 Mar 2007 13:25:41 +0300
Subject: [PATCH] sql_base.cc:   Post fix for bug#25122.

---
 sql/sql_base.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sql/sql_base.cc b/sql/sql_base.cc
index 86cb9f7770..9945057cd1 100644
--- a/sql/sql_base.cc
+++ b/sql/sql_base.cc
@@ -865,7 +865,8 @@ TABLE_LIST* unique_table(THD *thd, TABLE_LIST *table, TABLE_LIST *table_list,
          (! (res= mysql_lock_have_duplicate(thd, table, table_list)))) ||
         ((!res->table || res->table != table->table) &&
          (!check_alias || !(lower_case_table_names ?
-          strcasecmp(t_alias, res->alias) : strcmp(t_alias, res->alias))) &&
+          my_strcasecmp(files_charset_info, t_alias, res->alias) :
+          strcmp(t_alias, res->alias))) &&
          res->select_lex && !res->select_lex->exclude_from_table_unique_test &&
          !res->prelocking_placeholder))
       break;
-- 
2.30.9