Ticket #5203: sqlite_synchronous.patch

File sqlite_synchronous.patch, 652 bytes (added by jdetaeye@…, 17 years ago)

patch

  • django/db/backends/sqlite3/base.py

     
    181181    # NB: The generated SQL below is specific to SQLite
    182182    # Note: The DELETE FROM... SQL generated below works for SQLite databases
    183183    # because constraints don't exist
    184     sql = ['%s %s %s;' % \
     184    sql = ['PRAGMA SYNCHRONOUS = OFF'] + \
     185          ['%s %s %s;' % \
    185186            (style.SQL_KEYWORD('DELETE'),
    186187             style.SQL_KEYWORD('FROM'),
    187188             style.SQL_FIELD(quote_name(table))
Back to Top