Skip to content

Support numbered positional parameter placeholders #27377

Open

Description

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

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions