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

Support numbered positional parameter placeholders #27377

Open
roji opened this issue Feb 4, 2022 · 0 comments
Open

Support numbered positional parameter placeholders #27377

roji opened this issue Feb 4, 2022 · 0 comments

Comments

@roji
Copy link
Member

roji commented Feb 4, 2022

PostgreSQL native parameter placeholders are $1, $2, etc. This is different from the e.g. ODBC placeholders (?, ?), which are also positional but not numbered (i.e. PG allows referring to the same parameter more than once, whereas ODBC does not). Unfortunately, our current placeholder logic currently doesn't allow for (command) state to participate in the generation (i.e. what's the next number).

Assuming we want to do this, it would probably be done along with #22458, which is about some cleanup of the placeholder logic.

Note: Npgsql also supports named placeholder (@foo), by rewriting them to the native PG placeholders. This issue would allow us to stop doing that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants