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

uuid() returns the same value for all uses in a statement #3323

Closed
zachmu opened this issue Apr 28, 2022 · 0 comments
Closed

uuid() returns the same value for all uses in a statement #3323

zachmu opened this issue Apr 28, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@zachmu
Copy link
Member

zachmu commented Apr 28, 2022

Like rand(), uuid() should never be evaluated early. It should return a new value for each evaluation.

select uuid(), uuid();
+--------------------------------------+--------------------------------------+
| uuid()                               | uuid()                               |
+--------------------------------------+--------------------------------------+
| e98d77a2-c736-11ec-96cf-e00af64e177e | e98d77b3-c736-11ec-96cf-e00af64e177e |
+--------------------------------------+--------------------------------------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants