#81: Missing adaptation of parameters in query() and query_prepared()
-------------------------+-----------------
Reporter: cito | Owner:
Type: enhancement | Status: new
Priority: major | Milestone: 5.2
Component: DB API 2 | Version: 5.0
Keywords: |
-------------------------+-----------------
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.
--
Ticket URL: <http://trac.pygresql.org:8000/pgtracker/ticket/81>
PyGreSQL <http://www.pygresql.org/>
PyGreSQL Tracker
_______________________________________________
PyGreSQL mailing list
[email protected]
https://mail.vex.net/mailman/listinfo/pygresql