summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorSergey Vojtovich <svoj@sun.com>2009-11-02 19:06:58 +0400
committerSergey Vojtovich <svoj@sun.com>2009-11-02 19:06:58 +0400
commit66fc82247d19ec4782b5289d72fc7531289c9174 (patch)
tree75b383820e3c17b2a1bf6d86068c065011c053d7 /mysql-test
parent37d83e4d48a8ec517946893a78d25e30473afd54 (diff)
downloadmariadb-git-66fc82247d19ec4782b5289d72fc7531289c9174.tar.gz
Applying InnoDB snashot 5.1-ss6129
Detailed revision comments: r6127 | vasil | 2009-10-30 11:18:25 +0200 (Fri, 30 Oct 2009) | 18 lines branches/5.1: Backport c6121 from branches/zip: ------------------------------------------------------------------------ r6121 | sunny | 2009-10-30 01:42:11 +0200 (Fri, 30 Oct 2009) | 7 lines Changed paths: M /branches/zip/mysql-test/innodb-autoinc.result branches/zip: This test has been problematic for sometime now. The underlying bug is that the data dictionaries get out of sync. In the AUTOINC code we try and apply salve to the symptoms. In the past MySQL made some unrelated change and the dictionaries stopped getting out of sync and this test started to fail. Now, it seems they have reverted that changed and the test is passing again. I suspect this is not he last time that this test will change. ------------------------------------------------------------------------
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/r/innodb-autoinc.result5
-rw-r--r--mysql-test/t/innodb-autoinc.test5
2 files changed, 6 insertions, 4 deletions
diff --git a/mysql-test/r/innodb-autoinc.result b/mysql-test/r/innodb-autoinc.result
index e662a6772c7..a40a13dbe9f 100644
--- a/mysql-test/r/innodb-autoinc.result
+++ b/mysql-test/r/innodb-autoinc.result
@@ -875,11 +875,11 @@ ALTER TABLE t1 CHANGE c1 d1 INT NOT NULL AUTO_INCREMENT;
SELECT * FROM t1;
d1
1
-2
+3
SELECT * FROM t1;
d1
1
-2
+3
INSERT INTO t1 VALUES(null);
Got one of the listed errors
ALTER TABLE t1 AUTO_INCREMENT = 3;
@@ -893,7 +893,6 @@ INSERT INTO t1 VALUES(null);
SELECT * FROM t1;
d1
1
-2
3
4
DROP TABLE t1;
diff --git a/mysql-test/t/innodb-autoinc.test b/mysql-test/t/innodb-autoinc.test
index 218484d440c..3f45bb9d003 100644
--- a/mysql-test/t/innodb-autoinc.test
+++ b/mysql-test/t/innodb-autoinc.test
@@ -492,8 +492,11 @@ SELECT * FROM t1;
-- source include/restart_mysqld.inc
# The MySQL and InnoDB data dictionaries should now be out of sync.
# The select should print message to the error log
-#-- error ER_AUTOINC_READ_FAILED,1467
SELECT * FROM t1;
+# MySQL have made a change (http://lists.mysql.com/commits/75268) that no
+# longer results in the two data dictionaries being out of sync. If they
+# revert their changes then this check for ER_AUTOINC_READ_FAILED will need
+# to be enabled.
-- error ER_AUTOINC_READ_FAILED,1467
INSERT INTO t1 VALUES(null);
ALTER TABLE t1 AUTO_INCREMENT = 3;