Sanjeev Paskaradevan added the comment:
An implementation of mogrify for pysqlite will necessarily be different from
the Psycopg2 implementation because of the way queries are executed in Psycopg2
vs. pysqlite.
In Pyscopg2 the arguments are bound into the query using mogrify and then
R. David Murray added the comment:
Given what you have determined, I don't think there would be any benefit to
such a method.
Furthermore, I have now remembered that as of Python 3.3 the sqlite3
module/sqlite3 has a set_trace_callback function that allows you to capture the
commands that are
New submission from Kurt Schwehr schw...@ccom.unh.edu:
Psycopg2 has a mogrify method on the cursor that returns the string that would
be sent to the database for an execute. Any chance that could be added to
pysqlite? It's definitely helpful for debugging and is a fantastic tool when
R. David Murray rdmur...@bitdance.com added the comment:
Can you propose a patch?
--
nosy: +r.david.murray
stage: - unit test needed
versions: +Python 3.2 -Python 2.7, Python 3.1
___
Python tracker rep...@bugs.python.org