[issue9506] sqlite3 mogrify - return query string

2013-03-20 Thread Sanjeev Paskaradevan
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

[issue9506] sqlite3 mogrify - return query string

2013-03-20 Thread R. David Murray
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

[issue9506] sqlite3 mogrify - return query string

2010-08-04 Thread Kurt Schwehr
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

[issue9506] sqlite3 mogrify - return query string

2010-08-04 Thread R. David Murray
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