~ubuntu-branches/ubuntu/maverick/mysql-5.1/maverick-proposed

« back to all changes in this revision

Viewing changes to mysql-test/r/func_gconcat.result

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 14:16:05 UTC
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: package-import@ubuntu.com-20120222141605-nxlu9yzc6attylc2
Tags: upstream-5.1.61
ImportĀ upstreamĀ versionĀ 5.1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
995
995
1
996
996
1
997
997
DROP TABLE t1;
 
998
End of 5.0 tests
998
999
#
999
1000
# Bug #52397: another crash with explain extended and group_concat
1000
1001
#
1010
1011
Warnings:
1011
1012
Note    1003    select 1 AS `1` from (select group_concat(`test`.`t1`.`a` order by `test`.`t1`.`a` ASC separator ',') AS `GROUP_CONCAT(t1.a ORDER BY t1.a ASC)` from `test`.`t1` `t2` join `test`.`t1` group by `test`.`t1`.`a`) `d`
1012
1013
DROP TABLE t1;
1013
 
End of 5.0 tests
 
1014
#
 
1015
# Bug #54476: crash when group_concat and 'with rollup' in prepared statements
 
1016
 
1017
CREATE TABLE t1 (a INT);
 
1018
INSERT INTO t1 VALUES (1), (2);
 
1019
PREPARE stmt FROM "SELECT GROUP_CONCAT(t1.a ORDER BY t1.a) FROM t1 JOIN t1 t2 GROUP BY t1.a WITH ROLLUP";
 
1020
EXECUTE stmt;
 
1021
GROUP_CONCAT(t1.a ORDER BY t1.a)
 
1022
1,1
 
1023
2,2
 
1024
1,1,2,2
 
1025
EXECUTE stmt;
 
1026
GROUP_CONCAT(t1.a ORDER BY t1.a)
 
1027
1,1
 
1028
2,2
 
1029
1,1,2,2
 
1030
DEALLOCATE PREPARE stmt;
 
1031
DROP TABLE t1;
 
1032
#
 
1033
# Bug#57194 group_concat cause crash and/or invalid memory reads with type errors
 
1034
#
 
1035
CREATE TABLE t1(f1 int);
 
1036
INSERT INTO t1 values (0),(0);
 
1037
SELECT POLYGON((SELECT 1 FROM (SELECT 1 IN (GROUP_CONCAT(t1.f1)) FROM t1, t1 t GROUP BY t.f1 ) d));
 
1038
ERROR 22007: Illegal non geometric '(select 1 from (select (1 = group_concat(`test`.`t1`.`f1` separator ',')) AS `1 IN (GROUP_CONCAT(t1.f1))` from `test`.`t1` join `test`.`t1` `t` group by `t`.`f1`) `d`)' value found during parsing
 
1039
DROP TABLE t1;
 
1040
#
 
1041
# Bug#58396 group_concat and explain extended are still crashy
 
1042
#
 
1043
CREATE TABLE t1(a INT);
 
1044
EXPLAIN EXTENDED SELECT UPDATEXML('1', a, '1')
 
1045
FROM t1 ORDER BY (SELECT GROUP_CONCAT(1) FROM t1);
 
1046
ERROR HY000: Only constant XPATH queries are supported
 
1047
SHOW WARNINGS;
 
1048
Level   Code    Message
 
1049
Error   1105    Only constant XPATH queries are supported
 
1050
Note    1003    select updatexml('1',`test`.`t1`.`a`,'1') AS `UPDATEXML('1', a, '1')` from `test`.`t1` order by (select group_concat(1 separator ',') from `test`.`t1`)
 
1051
DROP TABLE t1;
 
1052
End of 5.1 tests