~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/group_by.test

Remove dead memset call.

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
 
83
83
INSERT INTO t1 VALUES (1,'1970-01-01','1997-10-17 00:00:00',2529,1,21000,11886,'check',0,'F',16200,6);
84
84
 
85
 
--error 1056
 
85
--error ER_WRONG_GROUP_FIELD
86
86
SELECT COUNT(P.URID),SUM(P.amount),P.method, MIN(PP.recdate+0) > 19980501000000   AS IsNew FROM t1 AS P JOIN t1 as PP WHERE P.URID = PP.URID GROUP BY method,IsNew;
87
87
 
88
88
drop table t1;
168
168
#  KEY votes (votes)
169
169
#);
170
170
#
171
 
#--error 1265
 
171
#--error ER_WARN_DATA_TRUNCATED
172
172
#INSERT INTO t1 VALUES (1,0,0,'','normal','','2000-02-10 09:25:12',20000321114747,'','','Linux','P1','TestProduct','PC',3,'other','TestComponent','','M1',0,'',0);
173
173
#INSERT INTO t1 VALUES (9,0,0,'','enhancement','','2000-03-10 11:49:36',20000321114747,'','','All','P5','AAAAA','PC',3,'2.00 CD - Pre','BBBBBBBBBBBBB - conversion','','',0,'',0);
174
174
#INSERT INTO t1 VALUES (10,0,0,'','enhancement','','2000-03-10 18:10:16',20000321114747,'','','All','P4','AAAAA','PC',3,'2.00 CD - Pre','BBBBBBBBBBBBB - conversion','','',0,'',0);
400
400
insert into t2 values (1,3),(3,1),(2,2),(1,1);
401
401
select t1.a,t2.b from t1,t2 where t1.a=t2.a group by t1.a,t2.b;
402
402
select t1.a,t2.b from t1,t2 where t1.a=t2.a group by t1.a,t2.b ORDER BY NULL;
 
403
--sorted_result
403
404
explain select t1.a,t2.b from t1,t2 where t1.a=t2.a group by t1.a,t2.b;
 
405
--sorted_result
404
406
explain select t1.a,t2.b from t1,t2 where t1.a=t2.a group by t1.a,t2.b ORDER BY NULL;
405
407
drop table t1,t2;
406
408
 
510
512
 
511
513
delete from t2  where a = 2 and b = 'val-2' order by a,b,c,d limit 30;
512
514
 
 
515
--replace_column 4 # 7 # 9 # 10 #
513
516
explain select c from t2 where a = 2 and b = 'val-2' group by c;
514
517
select c from t2 where a = 2 and b = 'val-2' group by c;
515
518
drop table t1,t2;