diff options
author | Mikael Ronstrom <mikael@mysql.com> | 2009-10-21 12:57:33 +0200 |
---|---|---|
committer | Mikael Ronstrom <mikael@mysql.com> | 2009-10-21 12:57:33 +0200 |
commit | 9ef69958c5f9c0078b6e440cc2730c459d40964f (patch) | |
tree | f0b0fae716640619475cf5f3d5363d0ca84f609e /mysql-test/t/func_str.test | |
parent | 6e7a37d3e8fc1f32c382dae143eb091be1eb1e8f (diff) | |
parent | 37b6043070ebed97158c4ef9e3c8534a8c23c860 (diff) | |
download | mariadb-git-9ef69958c5f9c0078b6e440cc2730c459d40964f.tar.gz |
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 |