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

« back to all changes in this revision

Viewing changes to mysql-test/suite/innodb/r/innodb.result

  • 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:
1301
1301
update t3 set  t3.id=7  where t1.id =1 and t2.id = t1.id and t3.id = t2.id;
1302
1302
ERROR 42S22: Unknown column 't1.id' in 'where clause'
1303
1303
drop table t3,t2,t1;
 
1304
CREATE TABLE t1 (
 
1305
c1 VARCHAR(8), c2 VARCHAR(8),
 
1306
PRIMARY KEY (c1, c2)
 
1307
) ENGINE=InnoDB;
 
1308
CREATE TABLE t2 (
 
1309
c0 INT PRIMARY KEY,
 
1310
c1 VARCHAR(8) UNIQUE,
 
1311
FOREIGN KEY (c1) REFERENCES t1 (c1) ON UPDATE CASCADE
 
1312
) ENGINE=InnoDB;
 
1313
INSERT INTO t1 VALUES ('old', 'somevalu'), ('other', 'anyvalue');
 
1314
INSERT INTO t2 VALUES (10, 'old'), (20, 'other');
 
1315
UPDATE t1 SET c1 = 'other' WHERE c1 = 'old';
 
1316
ERROR 23000: Upholding foreign key constraints for table 't1', entry 'other-somevalu', key 2 would lead to a duplicate entry
 
1317
DROP TABLE t2,t1;
1304
1318
create table t1(
1305
1319
id int primary key,
1306
1320
pid int,
1673
1687
71
1674
1688
SELECT variable_value - @innodb_rows_inserted_orig FROM information_schema.global_status WHERE LOWER(variable_name) = 'innodb_rows_inserted';
1675
1689
variable_value - @innodb_rows_inserted_orig
1676
 
1066
 
1690
1070
1677
1691
SELECT variable_value - @innodb_rows_updated_orig FROM information_schema.global_status WHERE LOWER(variable_name) = 'innodb_rows_updated';
1678
1692
variable_value - @innodb_rows_updated_orig
1679
1693
866
3177
3191
Variable_name   Value
3178
3192
Handler_delete  1
3179
3193
DROP TABLE bug58912;
 
3194
create table t1 (f1 integer primary key) engine=innodb;
 
3195
flush status;
 
3196
show status like "handler_read_key";
 
3197
Variable_name   Value
 
3198
Handler_read_key        0
 
3199
select f1 from t1;
 
3200
f1
 
3201
show status like "handler_read_key";
 
3202
Variable_name   Value
 
3203
Handler_read_key        1
 
3204
drop table t1;