1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

Fix possible corruption of results from SUBSTRING_INDEX(). (Bug #14676)

This commit is contained in:
jimw@mysql.com
2005-11-23 16:49:07 -08:00
parent 63554e10d8
commit 69cf72710d
3 changed files with 37 additions and 16 deletions

View File

@@ -1023,3 +1023,10 @@ select format(d, 2) from t1;
format(d, 2)
NULL
drop table t1;
create table t1 (c varchar(40));
insert into t1 values ('y,abc'),('y,abc');
select c, substring_index(lcase(c), @q:=',', -1) as res from t1;
c res
y,abc abc
y,abc abc
drop table t1;