From 11bd5990630ed03a50ae8b3e586a91a39ca9136b Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 17 Mar 2003 10:47:08 +0400 Subject: [PATCH] sql_select.cc: binary comparing alway must be used, because sort_string() is executed for textual data. sql/sql_select.cc: binary comparing alway must be used, because sort_string() is executed for textual data. --- sql/sql_select.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sql/sql_select.cc b/sql/sql_select.cc index 3e20f21f567..f92e9804973 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -6710,8 +6710,7 @@ static int remove_dup_with_hash_index(THD *thd, TABLE *table, NullS)) DBUG_RETURN(1); - // BAR TODO: this must be fixed to use charset from "table" argument - if (hash_init(&hash, default_charset_info, (uint) file->records, 0, + if (hash_init(&hash, &my_charset_bin, (uint) file->records, 0, key_length,(hash_get_key) 0, 0, 0)) { my_free((char*) key_buffer,MYF(0));