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

Adding system variable innodb_autoinc_lock_mode #2410

Merged
merged 8 commits into from
Mar 22, 2024
Merged

Adding system variable innodb_autoinc_lock_mode #2410

merged 8 commits into from
Mar 22, 2024

Conversation

jycor
Copy link
Contributor

@jycor jycor commented Mar 21, 2024

We currently only support innodb_autoinc_lock_mode = 2, not 0 or 1.

MySQL Docs:
https://dev.mysql.com/doc/refman/8.0/en/innodb-auto-increment-handling.html

related: dolthub/dolt#7634

Copy link
Contributor

@max-hoffman max-hoffman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, some enginetests that initialize an engine from a config string and check for errors might not be a bad idea. Seems like a generally useful test pattern


for _, test := range tests {
t.Run(fmt.Sprintf("set %v = %v", test.varName, test.varVal), func(t *testing.T) {
InitSystemVariables()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe defer the call to make sure it resets if something errors?

@jycor jycor merged commit a37b578 into main Mar 22, 2024
7 checks passed
@jycor jycor deleted the james/autoinc branch March 22, 2024 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants