You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
log224
changed the title
Cannot use UUIDs as keys
Bug: Cannot use UUIDs as keys
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?
The text was updated successfully, but these errors were encountered: