Ticket #5203: sqlite_synchronous_revised.patch
File sqlite_synchronous_revised.patch, 826 bytes (added by , 17 years ago) |
---|
-
django/db/backends/sqlite3/base.py
67 67 # NB: The generated SQL below is specific to SQLite 68 68 # Note: The DELETE FROM... SQL generated below works for SQLite databases 69 69 # because constraints don't exist 70 sql = ['%s %s %s;' % \ 70 sql = ['%s %s = %s' % \ 71 (style.SQL_KEYWORD('PRAGMA'), 72 style.SQL_KEYWORD('SYNCHRONOUS'), 73 style.SQL_KEYWORD('OFF'))] + \ 74 ['%s %s %s;' % \ 71 75 (style.SQL_KEYWORD('DELETE'), 72 76 style.SQL_KEYWORD('FROM'), 73 77 style.SQL_FIELD(self.quote_name(table))