1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

SUBSTR with negative argument didn't work

with multi-byte strings, length() instead
of numchars() where used in a mistake.
This commit is contained in:
unknown
2005-05-09 20:55:06 +05:00
parent b8ea7d4b8a
commit 66446b31b7
3 changed files with 10 additions and 1 deletions

View File

@ -666,6 +666,12 @@ drop table t1;
#
select 'c' like '\_' as want0;
#
# SUBSTR with negative offset didn't work with multi-byte strings
#
SELECT SUBSTR('вася',-2);
#
# Bug #7730 Server crash using soundex on an utf8 table
#