~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/olap.test

Merge Joe, plus I updated the tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
# Error handling
73
73
 
74
74
# Cube is not yet implemented
75
 
--error ER_PARSE_ERROR
 
75
--error 1064
76
76
select product, country_id , year, sum(profit) from t1 group by product, country_id, year with cube;
77
 
--error ER_PARSE_ERROR
 
77
--error 1064
78
78
explain select product, country_id , year, sum(profit) from t1 group by product, country_id, year with cube;
79
 
--error ER_PARSE_ERROR
 
79
--error 1064
80
80
select product, country_id , year, sum(profit) from t1 group by product, country_id, year with cube union all select product, country_id , year, sum(profit) from t1 group by product, country_id, year with rollup;
81
81
 
82
82
drop table t1,t2;
90
90
CREATE TABLE t2 (i int);
91
91
INSERT INTO t2 VALUES (100),(200);
92
92
SELECT i, COUNT(*) FROM t1 GROUP BY i WITH ROLLUP;
93
 
SELECT t1.i, t2.i, COUNT(*) FROM t1 CROSS JOIN t2 GROUP BY t1.i,t2.i WITH ROLLUP;
 
93
SELECT t1.i, t2.i, COUNT(*) FROM t1,t2 GROUP BY t1.i,t2.i WITH ROLLUP;
94
94
drop table t1,t2;
95
95
 
96
96
#bug #4767: ROLLUP with LEFT JOIN