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

Missing adaptation of parameters in query() and query_prepared() #28

Open
Cito opened this issue Feb 15, 2020 · 0 comments
Open

Missing adaptation of parameters in query() and query_prepared() #28

Cito opened this issue Feb 15, 2020 · 0 comments
Milestone

Comments

@Cito
Copy link
Member

Cito commented Feb 15, 2020

In the pgdb module and the query_formatted() and higher level methods of the pg module such as update(), input parameters are adapted automatically, e.g. converting Python lists to PostgreSQL arrays.

However, the lower level query() and query_prepared() methods of the pg module pass parameters in raw form. This is not well documented, and there is no help on what to do in this case. We should explain how and when to manually adapt the parameters. Maybe also provide alternative low level methods with the Postgres parameter syntax or improve the low level methods so that they automatically adapt parameters as well if that's possible without loss of performance or backward compatibility.

(copied from Trac ticket 81, created 2019-06-07)

@Cito Cito added this to the 5.2 milestone Feb 15, 2020
@Cito Cito modified the milestones: 5.2, 5.3 Jun 20, 2020
@Cito Cito modified the milestones: 5.3, 6.1 Aug 27, 2023
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