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

dolt_reset(--hard) after a drop table reserts the auto_increment counter to 1 #8272

Closed
timsehn opened this issue Aug 15, 2024 · 0 comments · Fixed by #8319
Closed

dolt_reset(--hard) after a drop table reserts the auto_increment counter to 1 #8272

timsehn opened this issue Aug 15, 2024 · 0 comments · Fixed by #8319
Assignees
Labels
bug Something isn't working version control

Comments

@timsehn
Copy link
Contributor

timsehn commented Aug 15, 2024

Repro:

ai4/main*> drop table visitors;
ai4/main*> call dolt_reset('--hard');
+--------+
| status |
+--------+
| 0      |
+--------+
1 row in set (0.01 sec)

ai4/main> insert into visitors(reason) values ('Ai from the data lake');
Error 1062 (HY000): duplicate primary key given: [1]

ai4 database found here: https://www.dolthub.com/repositories/timsehn/ai4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working version control
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants