1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-26669 Add MY_COLLATION_HANDLER functions min_str() and max_str()

This commit is contained in:
Alexander Barkov
2021-09-23 18:46:37 +04:00
parent 7697216371
commit 0d68b0a2d6
23 changed files with 683 additions and 87 deletions

View File

@@ -22,6 +22,7 @@
#include "strings_def.h"
#include <m_ctype.h>
#include "ctype-simple.h"
const char charset_name_binary[]= "binary";
#define charset_name_binary_length (sizeof(charset_name_binary)-1)
@@ -497,7 +498,9 @@ MY_COLLATION_HANDLER my_collation_8bit_bin_handler =
my_strcasecmp_bin,
my_instr_bin,
my_hash_sort_8bit_bin,
my_propagate_simple
my_propagate_simple,
my_min_str_8bit_simple,
my_max_str_8bit_simple
};
@@ -513,7 +516,9 @@ MY_COLLATION_HANDLER my_collation_8bit_nopad_bin_handler =
my_strcasecmp_bin,
my_instr_bin,
my_hash_sort_bin,
my_propagate_simple
my_propagate_simple,
my_min_str_8bit_simple_nopad,
my_max_str_8bit_simple
};
@@ -529,7 +534,9 @@ static MY_COLLATION_HANDLER my_collation_binary_handler =
my_strcasecmp_bin,
my_instr_bin,
my_hash_sort_bin,
my_propagate_simple
my_propagate_simple,
my_min_str_8bit_simple_nopad,
my_max_str_8bit_simple
};