diff options
Diffstat (limited to 'mysql-test/main/auto_increment.result')
-rw-r--r-- | mysql-test/main/auto_increment.result | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/mysql-test/main/auto_increment.result b/mysql-test/main/auto_increment.result index 660a93b1b30..bd61d73f08c 100644 --- a/mysql-test/main/auto_increment.result +++ b/mysql-test/main/auto_increment.result @@ -538,6 +538,35 @@ pk 1 drop table t1; # +# End of 5.3 tests +# +# +# MDEV-16534 PPC64: Unexpected error with a negative values into auto-increment columns in HEAP, MyISAM, ARIA +# +CREATE TABLE t1 ( +id TINYINT NOT NULL AUTO_INCREMENT, +name CHAR(30) NOT NULL, +PRIMARY KEY (id) +) ENGINE=MyISAM; +SHOW CREATE TABLE t1; +Table Create Table +t1 CREATE TABLE `t1` ( + `id` tinyint(4) NOT NULL AUTO_INCREMENT, + `name` char(30) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1 +INSERT INTO t1 (name) VALUES ('dog'); +UPDATE t1 SET id=-1 WHERE id=1; +INSERT INTO t1 (name) VALUES ('cat'); +SELECT * FROM t1; +id name +-1 dog +2 cat +DROP TABLE t1; +# +# End of 5.5 tests +# +# # MDEV-15352 AUTO_INCREMENT breaks after updating a column value to a negative number # SET @engine='MyISAM'; @@ -657,3 +686,6 @@ id name -1 dog 2 cat DROP PROCEDURE autoinc_mdev15353_one; +# +# End of 10.2 tests +# |