Ticket #12850: add_quote_name_to_constraint_identifier_1.1.1.patch

File add_quote_name_to_constraint_identifier_1.1.1.patch, 696 bytes (added by Tim Kersten, 14 years ago)
  • django/db/backends/creation.py

     
    300300                (style.SQL_KEYWORD('ALTER TABLE'),
    301301                style.SQL_TABLE(qn(table)),
    302302                style.SQL_KEYWORD(self.connection.ops.drop_foreignkey_sql()),
    303                 style.SQL_FIELD(truncate_name(r_name, self.connection.ops.max_name_length()))))
     303                style.SQL_FIELD(self.connection.ops.quote_name(truncate_name(r_name, self.connection.ops.max_name_length())))))
    304304        del references_to_delete[model]
    305305        return output
    306306
Back to Top