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

fix(rdbms-support) Replace int with UUID for table aliasing #851

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

juanpibcn2
Copy link

Intends to fix #850
We get the last 12 chars from a UUIDv4 to add a lot more randomness to the table alias generation.
With 1-1000 int range a collision is much more likely to happen leading to two different tables having the same alias which results in a SQL syntax error

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.

Table alias creation can lead to SQL syntax errors
1 participant