diff options
author | Sergey Glukhov <Sergey.Glukhov@sun.com> | 2009-09-10 15:30:03 +0500 |
---|---|---|
committer | Sergey Glukhov <Sergey.Glukhov@sun.com> | 2009-09-10 15:30:03 +0500 |
commit | b25b1be796001dc402d4d6c2fe206d252202b525 (patch) | |
tree | 6b8c339303465f2379325beece465a3c71bd3be9 /mysql-test/t/func_str.test | |
parent | df67d14983bb7ce1d879da6b6a9f861cc76a1ec2 (diff) | |
parent | 5fbc2904bccbcd5e3609a4a660105ccab117c7c6 (diff) | |
download | mariadb-git-b25b1be796001dc402d4d6c2fe206d252202b525.tar.gz |
5.0-bugteam->5.1-bugteam merge
Diffstat (limited to 'mysql-test/t/func_str.test')
-rw-r--r-- | mysql-test/t/func_str.test | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mysql-test/t/func_str.test b/mysql-test/t/func_str.test index 7cb7f7f72d2..66b9eabd385 100644 --- a/mysql-test/t/func_str.test +++ b/mysql-test/t/func_str.test @@ -1291,6 +1291,19 @@ INSERT INTO t1 VALUES ('aaaaaaaa'); SELECT LOAD_FILE(a) FROM t1; DROP TABLE t1; +# +# Bug#46815 CONCAT_WS returning wrong data +# +CREATE TABLE t1 (f2 VARCHAR(20)); +CREATE TABLE t2 (f2 VARCHAR(20)); + +INSERT INTO t1 VALUES ('MIN'),('MAX'); +INSERT INTO t2 VALUES ('LOAD'); + +SELECT CONCAT_WS('_', (SELECT t2.f2 FROM t2), t1.f2) AS concat_name FROM t1; + +DROP TABLE t1, t2; + --echo End of 5.0 tests |