def last_executed_query(self, cursor, sql, params): return force_text(cursor.statement, errors='replace')