~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/range.test

Added pandora check for berkeley db.

Show diffs side-by-side

added added

removed removed

Lines of Context:
379
379
 
380
380
analyze table t1,t2;
381
381
 
382
 
--replace_column 3 # 8 # 9 #
 
382
--replace_column 9 #
383
383
explain select * from t1, t2  where t1.uid=t2.uid AND t1.uid > 0;
384
 
--replace_column 3 # 8 # 9 #
 
384
--replace_column 9 #
385
385
explain select * from t1, t2  where t1.uid=t2.uid AND t2.uid > 0;
386
 
--replace_column 3 # 8 # 9 #
 
386
--replace_column 9 #
387
387
explain select * from t1, t2  where t1.uid=t2.uid AND t1.uid != 0;
388
 
--replace_column 3 # 8 # 9 #
 
388
--replace_column 9 #
389
389
explain select * from t1, t2  where t1.uid=t2.uid AND t2.uid != 0;
390
390
 
391
391
select * from t1, t2  where t1.uid=t2.uid AND t1.uid > 0;
555
555
('d8c4177d24ccef970.14957924','d8c4177d09f8b11f5.52725521',10,11,
556
556
 'd8c4177d09f8b11f5.52725521');
557
557
 
558
 
--replace_column 3 # 8 # 9 #
559
 
--sorted_result
 
558
--replace_column 9 #
560
559
EXPLAIN
561
560
SELECT s.oxid FROM t1 v, t1 s 
562
561
  WHERE s.oxrootid = 'd8c4177d09f8b11f5.52725521' AND
793
792
create table t2 (a varchar(10), filler char(200), key(a));
794
793
insert into t2 select * from t1;
795
794
 
796
 
--replace_column 3 # 8 # 9 #
 
795
--replace_column 9 #
797
796
explain select * from t1 where a between 'a' and 'a '; 
798
 
--replace_column 3 # 8 # 9 #
 
797
--replace_column 9 #
799
798
explain select * from t1 where a = 'a' or a='a ';
800
799
 
801
 
--replace_column 3 # 8 # 9 #
 
800
--replace_column 9 #
802
801
explain select * from t2 where a between 'a' and 'a '; 
803
 
--replace_column 3 # 8 # 9 #
 
802
--replace_column 9 #
804
803
explain select * from t2 where a = 'a' or a='a ';
805
804
 
806
805
update t1 set a='b' where a<>'a';
807
 
--replace_column 3 # 4 # 5 # 6 # 7 # 8 # 9 #
 
806
--replace_column 9 #
808
807
explain select * from t1 where a not between 'b' and 'b'; 
809
808
select a, hex(filler) from t1 where a not between 'b' and 'b'; 
810
809
 
856
855
('A1','2005-12-12 08:00:00',3000),
857
856
('A2','2005-12-01 08:00:00',1000);
858
857
 
859
 
--replace_column 3 # 8 # 9 #
 
858
--replace_column 9 #
860
859
EXPLAIN SELECT * FROM t1 WHERE item='A1' AND started<='2005-12-01 23:59:59';
861
860
SELECT * FROM t1 WHERE item='A1' AND started<='2005-12-01 23:59:59';
862
861
SELECT * FROM t1 WHERE item='A1' AND started<='2005-12-02 00:00:00';