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 , 15 years ago) |
---|
-
django/db/backends/creation.py
300 300 (style.SQL_KEYWORD('ALTER TABLE'), 301 301 style.SQL_TABLE(qn(table)), 302 302 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()))))) 304 304 del references_to_delete[model] 305 305 return output 306 306