Takes the SQLQuery object and returns query string and parameters.
(self, sql_query)
| 1353 | DB.__init__(self, db, keywords) |
| 1354 | |
| 1355 | def _process_query(self, sql_query): |
| 1356 | """Takes the SQLQuery object and returns query string and parameters.""" |
| 1357 | # MSSQLDB expects params to be a tuple. |
| 1358 | # Overwriting the default implementation to convert params to tuple. |
| 1359 | paramstyle = getattr(self, "paramstyle", "pyformat") |
| 1360 | query = sql_query.query(paramstyle) |
| 1361 | params = sql_query.values() |
| 1362 | return query, tuple(params) |
| 1363 | |
| 1364 | def sql_clauses(self, what, tables, where, group, order, limit, offset): |
| 1365 | return ( |