~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to mysql-test/t/innodb_mysql.test

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2010-06-21 15:31:05 UTC
  • mfrom: (1.1.3 upstream)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20100621153105-pbbz3t6nyrf9t2zq
Tags: upstream-5.1.48
ImportĀ upstreamĀ versionĀ 5.1.48

Show diffs side-by-side

added added

removed removed

Lines of Context:
618
618
 
619
619
DROP TABLE t1, t2;
620
620
 
 
621
--echo #
 
622
--echo # Bug #53334: wrong result for outer join with impossible ON condition
 
623
--echo # (see the same test case for MyISAM in join.test)
 
624
--echo #
 
625
 
 
626
CREATE TABLE t1 (id INT PRIMARY KEY);
 
627
CREATE TABLE t2 (id INT);
 
628
 
 
629
INSERT INTO t1 VALUES (75);
 
630
INSERT INTO t1 VALUES (79);
 
631
INSERT INTO t1 VALUES (78);
 
632
INSERT INTO t1 VALUES (77);
 
633
REPLACE INTO t1 VALUES (76);
 
634
REPLACE INTO t1 VALUES (76);
 
635
INSERT INTO t1 VALUES (104);
 
636
INSERT INTO t1 VALUES (103);
 
637
INSERT INTO t1 VALUES (102);
 
638
INSERT INTO t1 VALUES (101);
 
639
INSERT INTO t1 VALUES (105);
 
640
INSERT INTO t1 VALUES (106);
 
641
INSERT INTO t1 VALUES (107);
 
642
 
 
643
INSERT INTO t2 VALUES (107),(75),(1000);
 
644
 
 
645
SELECT t1.id,t2.id FROM t2 LEFT JOIN t1 ON t1.id>=74 AND t1.id<=0
 
646
  WHERE t2.id=75 AND t1.id IS NULL;
 
647
EXPLAIN SELECT t1.id,t2.id FROM t2 LEFT JOIN t1 ON t1.id>=74 AND t1.id<=0
 
648
  WHERE t2.id=75 AND t1.id IS NULL;
 
649
 
 
650
DROP TABLE t1,t2;
 
651
 
 
652
 
 
653
--echo #
 
654
--echo # Bug #53830: !table || (!table->read_set || bitmap_is_set(table->read_set, field_index))
 
655
--echo #
 
656
 
 
657
CREATE TABLE t1 (a INT, b INT, c INT, d INT,
 
658
                 PRIMARY KEY(a,b,c), KEY(b,d))
 
659
                 ENGINE=InnoDB;
 
660
INSERT INTO t1 VALUES (0, 77, 1, 3);
 
661
 
 
662
UPDATE t1 SET d = 0 WHERE b = 77 AND c = 25;
 
663
 
 
664
DROP TABLE t1;
621
665
 
622
666
--echo End of 5.1 tests