Skip to content

Bug: Cannot use UUIDs as keys #22

Open
@log224

Description

@log224

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions