1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +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

@ -817,6 +817,9 @@ drop table t1;
select 'c' like '\_' as want0;
want0
0
SELECT SUBSTR('вася',-2);
SUBSTR('вася',-2)
ся
create table t1 (id integer, a varchar(100) character set utf8 collate utf8_unicode_ci);
insert into t1 values (1, 'Test');
select * from t1 where soundex(a) = soundex('Test');