~ubuntu-branches/ubuntu/precise/mysql-5.5/precise-201203300109

« back to all changes in this revision

Viewing changes to mysql-test/suite/innodb/t/innodb.test

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-02-14 23:59:22 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20120214235922-cux5uek1e5l0hje9
Tags: 5.5.20-0ubuntu1
* New upstream release.
* d/mysql-server-5.5.mysql.upstart: Fix stop on to make sure mysql is
  fully stopped before shutdown commences. (LP: #688541) Also simplify
  start on as it is redundant.
* d/control: Depend on upstart version which has apparmor profile load
  script to prevent failure on upgrade from lucid to precise.
  (LP: #907465)
* d/apparmor-profile: need to allow /run since that is the true path
  of /var/run files. (LP: #917542)
* d/control: mysql-server-5.5 has files in it that used to be owned
  by libmysqlclient-dev, so it must break/replace it. (LP: #912487)
* d/rules, d/control: 5.5.20 Fixes segfault on tests with gcc 4.6,
  change compiler back to system default.
* d/rules: Turn off embedded libedit/readline.(Closes: #659566)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1046
1046
update t3 set  t3.id=7  where t1.id =1 and t2.id = t1.id and t3.id = t2.id;
1047
1047
drop table t3,t2,t1;
1048
1048
 
 
1049
# test ON UPDATE CASCADE
 
1050
CREATE TABLE t1 (
 
1051
        c1 VARCHAR(8), c2 VARCHAR(8),
 
1052
        PRIMARY KEY (c1, c2)
 
1053
) ENGINE=InnoDB;
 
1054
 
 
1055
CREATE TABLE t2 (
 
1056
        c0 INT PRIMARY KEY,
 
1057
        c1 VARCHAR(8) UNIQUE,
 
1058
        FOREIGN KEY (c1) REFERENCES t1 (c1) ON UPDATE CASCADE
 
1059
) ENGINE=InnoDB;
 
1060
 
 
1061
INSERT INTO t1 VALUES ('old', 'somevalu'), ('other', 'anyvalue');
 
1062
INSERT INTO t2 VALUES (10, 'old'), (20, 'other');
 
1063
-- error ER_FOREIGN_DUPLICATE_KEY
 
1064
UPDATE t1 SET c1 = 'other' WHERE c1 = 'old';
 
1065
DROP TABLE t2,t1;
 
1066
 
1049
1067
#
1050
1068
# test for recursion depth limit
1051
1069
#
2560
2578
# Clean up after the Bug#55284/Bug#58912 test case.
2561
2579
DROP TABLE bug58912;
2562
2580
 
 
2581
#
 
2582
# Test fix for bug 13117023. InnoDB increments HA_READ_KEY_COUNT (aka
 
2583
# HANDLER_READ_KEY) when it should not.
 
2584
#
 
2585
create table t1 (f1 integer primary key) engine=innodb;
 
2586
flush status;
 
2587
show status like "handler_read_key";
 
2588
select f1 from t1;
 
2589
show status like "handler_read_key";
 
2590
drop table t1;
 
2591
 
2563
2592
#######################################################################
2564
2593
#                                                                     #
2565
2594
# Please, DO NOT TOUCH this file as well as the innodb.result file.   #