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

Make NEWID() and NEWSEQUENTIALID() functions VOLATILE #2541

Conversation

lejaokri
Copy link
Contributor

@lejaokri lejaokri commented May 2, 2024

Brief History

From GA to 14.6
NEWID() is VOLATILE [this is correct]

From 14.7 to 14.11
NEWID() is STABLE [this is wrong]

From 14.12
NEWID() should be VOLATILE

Description

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is under the terms of the Apache 2.0 and PostgreSQL licenses, and grant any person obtaining a copy of the contribution permission to relicense all or a portion of my contribution to the PostgreSQL License solely to contribute all or a portion of my contribution to the PostgreSQL open source project.

For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@lejaokri lejaokri force-pushed the klejao-babel-4923-2x branch 3 times, most recently from eeadad2 to e48a8ec Compare May 2, 2024 17:52
Altering a table to add a column with DEFAULT NEWID() makes
the values all the same value which is not the correct bheaviour.
This is because NEWID and NEWSEQUENTIALID are both STABLE when
then should be VOLATILE.

Task: BABEL-4923
Signed-off-by: Kristian Lejao <[email protected]>
@lejaokri lejaokri force-pushed the klejao-babel-4923-2x branch from e48a8ec to 6562354 Compare May 2, 2024 19:14
@lejaokri lejaokri merged commit 288cf89 into babelfish-for-postgresql:BABEL_2_X_DEV May 2, 2024
29 checks passed
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