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

Feature: @@last_generated_uuid system session variable #2358

Closed
wants to merge 2 commits into from

Conversation

fulghum
Copy link
Contributor

@fulghum fulghum commented Feb 29, 2024

Dolt recommends customers prefer UUIDs over auto_increment values where possible. For auto_increment columns, the MySQL last_insert_id() function helps to retrieve the last generated ID, but there's not an analogue for UUIDs. This PR adds a new system session variable, @@last_generated_uuid that is populated each time the UUID() function is executed. Note that this is not a standard MySQL behavior.

Customer request: dolthub/dolt#7547

@fulghum
Copy link
Contributor Author

fulghum commented Mar 1, 2024

Closing this one in favor of #2362

@fulghum fulghum closed this Mar 1, 2024
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.

None yet

1 participant