Closed GoogleCodeExporter closed 8 years ago
For reference here is a link to the pyscopg documentation of their "mogrify"
cursor method that the reporter is referring to:
http://initd.org/psycopg/docs/cursor.html#cursor.mogrify
pyodbc does not perform any such translations of the SQL: it passes
parameterized SQL straight through to the ODBC driver verbatim. The only
processing involved is translating parameters from Python objects to C types
supported by the ODBC API.
Some transformation on the SQL may be performed in the ODBC driver before it is
sent to the server (eg Microsoft SQL Native Client does this) but these
transformations are hidden from pyodbc.
Consequently I think it is not feasible to provide a mogrify function in pyodbc.
Original comment by lukedell...@gmail.com
on 16 Mar 2011 at 5:19
Great comment by Luke. Exactly so.
Closing. Thanks Luke.
Original comment by mkleehammer
on 27 Dec 2011 at 12:59
Original issue reported on code.google.com by
Phil.Pr...@gmail.com
on 11 Mar 2011 at 9:00