diff options
author | Alexander Barkov <bar@mnogosearch.org> | 2014-04-21 14:22:18 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mnogosearch.org> | 2014-04-21 14:22:18 +0400 |
commit | 31c82360e49ab773f00037796be9f28910baacec (patch) | |
tree | 48dda5e11cc4e1fa0b19a9aecac806d22ce300f5 /mysql-test/t/func_str.test | |
parent | f5b73fe3f14de97370fa184378de9c27575dceae (diff) | |
parent | 213f10363e1134fdb39842f55876db1136496ff3 (diff) | |
download | mariadb-git-31c82360e49ab773f00037796be9f28910baacec.tar.gz |
Merge from 5.3
Diffstat (limited to 'mysql-test/t/func_str.test')
-rw-r--r-- | mysql-test/t/func_str.test | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/mysql-test/t/func_str.test b/mysql-test/t/func_str.test index 0715fca7d96..c61ebbfa4bd 100644 --- a/mysql-test/t/func_str.test +++ b/mysql-test/t/func_str.test @@ -1409,6 +1409,34 @@ drop table t1; --echo End of 5.1 tests +--echo # +--echo # Start of 5.3 tests +--echo # + +--echo # +--echo # Bug#11829861: SUBSTRING_INDEX() RESULTS IN MISSING CHARACTERS WHEN USED +--echo # INSIDE LOWER() +--echo # +SET @user_at_host = 'root@mytinyhost-PC.local'; +SELECT LOWER(SUBSTRING_INDEX(@user_at_host, '@', -1)); +--echo # End of test BUG#11829861 + +--echo # +--echo # Bug#42404: SUBSTRING_INDEX() RESULTS ARE INCONSISTENT +--echo # + +CREATE TABLE t (i INT NOT NULL, c CHAR(255) NOT NULL); +INSERT INTO t VALUES (0,'.www.mysql.com'),(1,'.wwwmysqlcom'); +SELECT i, SUBSTRING_INDEX(c, '.', -2) FROM t WHERE i = 1; +SELECT i, SUBSTRING_INDEX(c, '.', -2) FROM t; +DROP TABLE t; +--echo # End of test BUG#42404 + +--echo # +--echo # End of 5.3 tests +--echo # + + --echo Start of 5.4 tests # # WL#4584 Internationalized number format |