summaryrefslogtreecommitdiff
path: root/sql/item_buff.cc
diff options
context:
space:
mode:
authorbar@bar.mysql.r18.ru <>2003-03-04 18:01:59 +0400
committerbar@bar.mysql.r18.ru <>2003-03-04 18:01:59 +0400
commitf95eb82934bf21a1f8d3aafba2ea2dde42014e38 (patch)
treeec01d4c8c14546cc3ecf4ff069124834d4ee8959 /sql/item_buff.cc
parent143c85057eb5cac447d653b291b622ef49ead9b5 (diff)
downloadmariadb-git-f95eb82934bf21a1f8d3aafba2ea2dde42014e38.tar.gz
stringcmp() and sortcmp() have been unified
into the only one sortcmp() with additional CHARSET_INFO *cmp_charset argument.
Diffstat (limited to 'sql/item_buff.cc')
-rw-r--r--sql/item_buff.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/sql/item_buff.cc b/sql/item_buff.cc
index 573d4ab17e3..c4431294dff 100644
--- a/sql/item_buff.cc
+++ b/sql/item_buff.cc
@@ -56,10 +56,8 @@ bool Item_str_buff::cmp(void)
}
else if (null_value)
return 0; // new and old value was null
- else if (!item->binary())
- tmp= sortcmp(&value,res) != 0;
else
- tmp= stringcmp(&value,res) != 0;
+ tmp= sortcmp(&value,res,item->charset()) != 0;
if (tmp)
value.copy(*res); // Remember for next cmp
return tmp;