Ticket #3822: quote_index.diff

File quote_index.diff, 766 bytes (added by Robin Breathe <robin@…>, 17 years ago)

patch

  • django/core/management.py

     
    456456            unique = f.unique and 'UNIQUE ' or ''
    457457            output.append(
    458458                style.SQL_KEYWORD('CREATE %sINDEX' % unique) + ' ' + \
    459                 style.SQL_TABLE('%s_%s' % (model._meta.db_table, f.column)) + ' ' + \
     459                style.SQL_TABLE(backend.quote_name('%s_%s' % (model._meta.db_table, f.column))) + ' ' + \
    460460                style.SQL_KEYWORD('ON') + ' ' + \
    461461                style.SQL_TABLE(backend.quote_name(model._meta.db_table)) + ' ' + \
    462462                "(%s);" % style.SQL_FIELD(backend.quote_name(f.column))
Back to Top