~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/tests/t/innodb-autoinc.test

  • Committer: Lee Bieber
  • Date: 2010-11-14 23:15:42 UTC
  • mfrom: (1929.1.42 warning-stack-frame)
  • Revision ID: kalebral@gmail.com-20101114231542-fnnu6ydd2p17n582
Merge Monty - fix bug 672372: some functions use > 32k stack

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
let $innodb_file_format_max_orig=`select @@innodb_file_format_max`;
2
 
 
3
1
CREATE TABLE t1 (c1 INT AUTO_INCREMENT, c2 INT, PRIMARY KEY(c1)) AUTO_INCREMENT=10 ENGINE=InnoDB;
4
2
CREATE INDEX i1 on t1(c2);
5
3
SHOW CREATE TABLE t1;
36
34
INSERT INTO t1 SET c1 = 2;
37
35
INSERT INTO t1 SET c1 = -1;
38
36
SELECT * FROM t1;
39
 
--error ER_DUP_ENTRY, ER_DUP_ENTRY
 
37
-- error ER_DUP_ENTRY,1062
40
38
INSERT INTO t1 SET c1 = -1;
41
39
SHOW CREATE TABLE t1;
42
40
REPLACE INTO t1 VALUES (-1);
75
73
SELECT * FROM t1;
76
74
SHOW CREATE TABLE t1;
77
75
DROP TABLE t1;
78
 
 
79
 
###
80
 
## 55277: Failing assertion: auto_inc > 0
81
 
##
82
 
#DROP TABLE IF EXISTS t1;
83
 
#CREATE TABLE t1(c1 BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY) ENGINE=InnoDB;
84
 
#INSERT INTO t1 VALUES (NULL);
85
 
#INSERT INTO t1 VALUES (18446744073709551615);
86
 
## Restart the server
87
 
#-- source include/restart_mysqld.inc
88
 
#SHOW CREATE TABLE t1;
89
 
#DROP TABLE t1;
90
 
 
91
 
 
92
 
#
93
 
# restore environment to the state it was before this test execution
94
 
#
95
 
 
96
 
eval SET GLOBAL innodb_file_format_max=$innodb_file_format_max_orig;