1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

added test for bug #2290 "output truncated with ELT when using DISTINCT"

sql/item_strfunc.cc:
  fixed bug #2290 "output truncated with ELT when using DISTINCT"
This commit is contained in:
unknown
2004-01-21 02:18:51 +04:00
parent afa55213dc
commit 24ca1e1edb
3 changed files with 17 additions and 1 deletions

View File

@ -266,3 +266,10 @@ CONCAT("</a>",RPAD("",(55 - LENGTH(title)),"."))
NULL
</a>..........................
DROP TABLE t1;
CREATE TABLE t1 (i int, j int);
INSERT INTO t1 VALUES (1,1),(2,2);
SELECT DISTINCT i, ELT(j, '345', '34') FROM t1;
i ELT(j, '345', '34')
1 345
2 34
DROP TABLE t1;