mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
min_sort_char was added, for the future UCA implementation.
UCS2 now has its own my_like_range function.
This commit is contained in:
@@ -946,7 +946,7 @@ my_bool my_like_range_simple(CHARSET_INFO *cs,
|
||||
if (*ptr == w_one) /* '_' in SQL */
|
||||
{
|
||||
*min_str++='\0'; /* This should be min char */
|
||||
*max_str++=cs->max_sort_char;
|
||||
*max_str++= (char) cs->max_sort_char;
|
||||
continue;
|
||||
}
|
||||
if (*ptr == w_many) /* '%' in SQL */
|
||||
@@ -955,7 +955,7 @@ my_bool my_like_range_simple(CHARSET_INFO *cs,
|
||||
*max_length=res_length;
|
||||
do {
|
||||
*min_str++ = ' '; /* Because if key compression */
|
||||
*max_str++ = cs->max_sort_char;
|
||||
*max_str++ = (char) cs->max_sort_char;
|
||||
} while (min_str != min_end);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user