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

go/adbc/driver/snowflake: Support binding parameters by name #2193

Open
CurtHagenlocher opened this issue Sep 26, 2024 · 0 comments
Open

go/adbc/driver/snowflake: Support binding parameters by name #2193

CurtHagenlocher opened this issue Sep 26, 2024 · 0 comments
Labels
Type: enhancement New feature or request

Comments

@CurtHagenlocher
Copy link
Contributor

CurtHagenlocher commented Sep 26, 2024

What feature or improvement would you like to see?

ADBC parameter binding works by binding an array and schema. This allows for the possibility of named bindings in the query and not just positional bindings. The Snowflake driver ignores the names in the schema and just binds the individual columns by ordinal. It's not possible without parsing the command text to know whether it uses positional binding markers (?) or named binding markers (:name), so enabling support for binding by name will probably require opting-in with a statement option e.g. adbc.snowflake.statement.bind_parameters_by_name.

@CurtHagenlocher CurtHagenlocher added the Type: enhancement New feature or request label Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant