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

Bug: Cannot use UUIDs as keys #22

Open
log224 opened this issue Mar 14, 2024 · 0 comments
Open

Bug: Cannot use UUIDs as keys #22

log224 opened this issue Mar 14, 2024 · 0 comments

Comments

@log224
Copy link

log224 commented Mar 14, 2024

When using UUIDs that start with a number (like 25af01bd-c1c2-44d9-a26b-c236a403b59e) as keys for the param map, the leading numbers are used as the key instead of the entire UUID (meaning the value from the param map isn't parsed to the query either).

For example, if running a query like SELECT * FROM item WHERE productId = :895e7ebc-bbb4-40f7-8808-ab250986dabb with the param map like { '895e7ebc-bbb4-40f7-8808-ab250986dabb': 35 }, the resulting query looks like:
SELECT * FROM item WHERE productId = ?e7ebc-bbb4-40f7-8808-ab250986dabb, with the args being [undefined].

Is there a reason the regex is only pulling the numeric characters when the leading character is a number?

@log224 log224 changed the title Cannot use UUIDs as keys Bug: Cannot use UUIDs as keys Mar 14, 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

No branches or pull requests

1 participant