Ticket #14091: mysql_lastexecuted.diff

File mysql_lastexecuted.diff, 685 bytes (added by Daniel Roseman, 14 years ago)
  • django/db/backends/mysql/base.py

     
    164164    def fulltext_search_sql(self, field_name):
    165165        return 'MATCH (%s) AGAINST (%%s IN BOOLEAN MODE)' % field_name
    166166
     167    def last_executed_query(self, cursor, sql, params):
     168        return (cursor.cursor._executed or
     169                super(DatabaseOperations, self).last_executed_query(cursor, sql, params))
     170
    167171    def no_limit_value(self):
    168172        # 2**64 - 1, as recommended by the MySQL documentation
    169173        return 18446744073709551615L
Back to Top