Ticket #12850: add_quote_name_to_constraint_identifier_r12411.patch
File add_quote_name_to_constraint_identifier_r12411.patch, 696 bytes (added by , 15 years ago) |
---|
-
django/db/backends/creation.py
318 318 (style.SQL_KEYWORD('ALTER TABLE'), 319 319 style.SQL_TABLE(qn(table)), 320 320 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()))))) 322 322 del references_to_delete[model] 323 323 return output 324 324