~skinny.moey/drizzle/branch-rev

« back to all changes in this revision

Viewing changes to mysql-test/innodb_bug46676.test

  • Committer: Stewart Smith
  • Author(s): stewart at flamingspork
  • Date: 2010-10-12 05:42:18 UTC
  • mto: (1843.1.3 build)
  • mto: This revision was merged to the branch mainline in revision 1844.
  • Revision ID: stewart@flamingspork.com-20101012054218-u5dd5umcl8zyir1n
[patch 112/129] Merge patch for revision 1925 from InnoDB SVN:
revno: 1925
revision-id: svn-v4:16c675df-0fcb-4bc9-8058-dcc011a37293:branches/zip:6169
parent: svn-v4:16c675df-0fcb-4bc9-8058-dcc011a37293:branches/zip:6163
committer: calvin
timestamp: Thu 2009-11-12 12:40:43 +0000
message:
  branches/zip: add test case for bug#46676
  
  This crash is reproducible with InnoDB plugin 1.0.4 + MySQL 5.1.37.
  But no longer reproducible after MySQL 5.1.38 (with plugin 1.0.5).
  Add test case to catch future regression.
added:
  mysql-test/innodb_bug46676.result 6169@16c675df-0fcb-4bc9-8058-dcc011a37293:branches%2Fzip%2Fmysql-test%2Finnodb_bug46676.result
  mysql-test/innodb_bug46676.test 6169@16c675df-0fcb-4bc9-8058-dcc011a37293:branches%2Fzip%2Fmysql-test%2Finnodb_bug46676.test
diff:
=== added file 'mysql-test/innodb_bug46676.result'

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# This is the test for bug 46676: mysqld got exception 0xc0000005
 
2
# It is reproducible with InnoDB plugin 1.0.4 + MySQL 5.1.37.
 
3
# But no longer reproducible after MySQL 5.1.38 (with plugin 1.0.5).
 
4
 
 
5
--source include/have_innodb.inc
 
6
 
 
7
SET foreign_key_checks=0;
 
8
CREATE TABLE t1 (id int, foreign key (id) references t2(id)) ENGINE=INNODB;
 
9
CREATE TABLE t2 (id int, foreign key (id) references t1(id)) ENGINE=INNODB;
 
10
SET foreign_key_checks=1;
 
11
 
 
12
# Server crashes
 
13
SELECT COUNT(*) FROM information_schema.key_column_usage WHERE REFERENCED_TABLE_NAME in ('t1', 't2');
 
14
 
 
15
SET foreign_key_checks=0;
 
16
DROP TABLE t1, t2;