[MDEV-5409] MyISAM tables don't respect auto_increment_increment value Created: 2013-12-07  Updated: 2013-12-11  Resolved: 2013-12-11

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: 5.5.34-galera
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Nirbhay Choubey (Inactive) Assignee: Nirbhay Choubey (Inactive)
Resolution: Fixed Votes: 0
Labels: galera, regression
Environment:

Ubuntu 12.04 (32/64)



 Description   

Version: '5.5.34-MariaDB-wsrep-debug-log' Source distribution, wsrep_23.7.6.r3446

Run the following queries on a MyISAM table:

CREATE TABLE t1
(
id INT NOT NULL auto_increment,
PRIMARY KEY (id),
name VARCHAR(30)
) ENGINE=MyISAM;
 
INSERT into t1(name) values('Record_1');
SELECT * from t1;
--echo ## Changing value of variable to 10 ##
SET @@session.auto_increment_increment = 10;
INSERT into t1(name) values('Record_2');
SELECT * from t1;
ALTER table t1 MODIFY id SMALLINT NOT NULL auto_increment;
INSERT into t1(name) values('Record_3');
SELECT * from t1;

The last SELECT would result in :

MariaDB [test]> SELECT * from t1;
+----+----------+
| id | name     |
+----+----------+
|  1 | Record_1 |
| 11 | Record_2 |
| 12 | Record_3 |
+----+----------+
3 rows in set (0.00 sec)

While running the same set of command on an InnoDB table would result in :

MariaDB [test]> SELECT * from t1;
+----+----------+
| id | name     |
+----+----------+
|  1 | Record_1 |
| 11 | Record_2 |
| 21 | Record_3 |
+----+----------+
3 rows in set (0.00 sec)



 Comments   
Comment by Nirbhay Choubey (Inactive) [ 2013-12-07 ]

Not reproducible on 5.5.33a-galera.

Comment by Nirbhay Choubey (Inactive) [ 2013-12-10 ]

Patch for following bug caused this : https://bugs.launchpad.net/codership-mysql/+bug/587170

Comment by Nirbhay Choubey (Inactive) [ 2013-12-11 ]

Updated the mtr test result files to reflect the changes made by
https://bugs.launchpad.net/codership-mysql/+bug/587170

Pushed to maria-5.5-galera.

Generated at Thu Feb 08 07:04:10 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.