[MDEV-23300] run "create table t {...} auto_increment=1000" success, but didn't take affect actually Created: 2020-07-27  Updated: 2020-09-06  Resolved: 2020-09-06

Status: Closed
Project: MariaDB Server
Component/s: Data Definition - Create Table
Affects Version/s: 10.0.20
Fix Version/s: N/A

Type: Bug Priority: Minor
Reporter: hzw Assignee: Unassigned
Resolution: Incomplete Votes: 0
Labels: auto_increment, create_table, need_feedback
Environment:

Ubuntu 14.04



 Description   

>>>CREATE TABLE t (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1000 DEFAULT CHARSET=utf8mb4

>>>show create table t;
--------------------------------------------------------------------+

CREATE TABLE `t` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
--------------------------------------------------------------------+

the "AUTO_INCREMENT=1000" didn't take affect.



 Comments   
Comment by Elena Stepanova [ 2020-08-05 ]

Please try with some recent supported version. 10.0 went EOL 1.5 years ago, and there were 18 10.0 releases between 10.0.20 and EOL.
Also, if you are running it via a tool other than the native command-line client, the tool itself can drop certain parts of the output. Try the command-line client instead.

Generated at Thu Feb 08 09:21:22 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.