Ticket #382: south-sqlite-quote-field-names.patch

File south-sqlite-quote-field-names.patch, 459 bytes (added by alex@…, 4 years ago)
  • south/db/sqlite3.py

    diff -r 516b011fe68c south/db/sqlite3.py
    a b  
    8080        # Copy over the data 
    8181        self.execute("INSERT INTO %s SELECT %s FROM %s;" % ( 
    8282            self.quote_name(dst), 
    83             ', '.join(q_fields), 
     83            ', '.join([self.quote_name(f) for f in q_fields]), 
    8484            self.quote_name(src), 
    8585        )) 
    8686