Ticket #12850: add_quote_name_to_constraint_identifier_r12411.patch

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

     
    318318                (style.SQL_KEYWORD('ALTER TABLE'),
    319319                style.SQL_TABLE(qn(table)),
    320320                style.SQL_KEYWORD(self.connection.ops.drop_foreignkey_sql()),
    321                 style.SQL_FIELD(truncate_name(r_name, self.connection.ops.max_name_length()))))
     321                style.SQL_FIELD(self.connection.ops.quote_name(truncate_name(r_name, self.connection.ops.max_name_length())))))
    322322        del references_to_delete[model]
    323323        return output
    324324
Back to Top