summaryrefslogtreecommitdiff
path: root/mysys/my_compare.c
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.com>2020-01-26 20:27:13 +0400
committerAlexander Barkov <bar@mariadb.com>2020-01-28 12:29:23 +0400
commitf1e13fdc8d9e78f4529aa60b6a9b49c6ff063c66 (patch)
treece84da1deeea573be5be7db7d739a4c9ba9b40f8 /mysys/my_compare.c
parentdd68ba74f357aca074609cbd77491ed4ba390369 (diff)
downloadmariadb-git-f1e13fdc8d9e78f4529aa60b6a9b49c6ff063c66.tar.gz
MDEV-21581 Helper functions and methods for CHARSET_INFO
Diffstat (limited to 'mysys/my_compare.c')
-rw-r--r--mysys/my_compare.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mysys/my_compare.c b/mysys/my_compare.c
index 358cb77008e..d4ecfd7b4aa 100644
--- a/mysys/my_compare.c
+++ b/mysys/my_compare.c
@@ -1,5 +1,5 @@
/* Copyright (c) 2011, Oracle and/or its affiliates.
- Copyright (C) 2009-2011 Monty Program Ab
+ Copyright (c) 2009, 2020, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -24,9 +24,9 @@ int ha_compare_text(CHARSET_INFO *charset_info, const uchar *a, size_t a_length,
const uchar *b, size_t b_length, my_bool part_key)
{
if (!part_key)
- return charset_info->coll->strnncollsp(charset_info, a, a_length,
- b, b_length);
- return charset_info->coll->strnncoll(charset_info, a, a_length,
+ return my_ci_strnncollsp(charset_info, a, a_length,
+ b, b_length);
+ return my_ci_strnncoll(charset_info, a, a_length,
b, b_length, part_key);
}