Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

executor: update auto_increment position when executing "show create table" #11820

Closed
wants to merge 1 commit into from

Conversation

zimulala
Copy link
Contributor

What problem does this PR solve?

create table show_auto_increment (id int key auto_increment) comment 'xxx', auto_increment=4;
show create table show_auto_increment;

Before this PR:

+---------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Table               | Create Table                                                                                                                                                                                 |
+---------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| show_auto_increment | CREATE TABLE `show_auto_increment` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin AUTO_INCREMENT=4 COMMENT='xxx' |
+---------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)

After this PR:

+---------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Table               | Create Table                                                                                                                                                                                 |
+---------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| show_auto_increment | CREATE TABLE `show_auto_increment` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='xxx' |
+---------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.01 sec)

What is changed and how it works?

Update auto_increment position in ShowExec.

Check List

Tests

  • Unit test

@sre-bot
Copy link
Contributor

sre-bot commented Aug 21, 2019

Thanks for your PR.
This PR will be closed by bot because you already had 2 opened PRs, close or merge them before submitting a new one.
#11625 , #11739

@sre-bot sre-bot closed this Aug 21, 2019
@zimulala zimulala deleted the zimuxia/show-create branch March 1, 2023 04:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants