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

Parameters handling #214

Closed
bcardiff opened this issue Mar 15, 2025 · 1 comment
Closed

Parameters handling #214

bcardiff opened this issue Mar 15, 2025 · 1 comment

Comments

@bcardiff
Copy link
Member

I noticed that query arguments are expected to be ? and via regex they will be replaced by @P{index}.

In other drivers the query is passed directly. Whether $1 or ? is the syntax to be used is up to the user.

Since regex are currently used to identify and replace the ? and not a full parser it means that string or column can't have a ?. It also means that an argument might need to be passed twice if needed twice in the query.

Avoiding the regex means a convention that the users needs be aware of which will be more complex than using just ? but does not have the above limitations.

WDYT? Is there a reason I'm missing why ? is chosen?

@bcardiff
Copy link
Member Author

Wrong repo 🤦

@bcardiff bcardiff closed this as not planned Won't fix, can't repro, duplicate, stale Mar 15, 2025
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