Commits

Andrew Godwin committed 0479ec3

Fix from ticket #672. Thanks to Charlie DeTar.

  • Participants
  • Parent commits 28ec3ce

Comments (0)

Files changed (1)

File south/db/sqlite3.py

 
     def _create_unique(self, table_name, columns):
         self.execute("CREATE UNIQUE INDEX %s ON %s(%s);" % (
-                self.quote_name('%s_%s' % (table_name, '__'.join(columns))),
-                self.quote_name(table_name),
-                ', '.join(columns)
+            self.quote_name('%s_%s' % (table_name, '__'.join(columns))),
+            self.quote_name(table_name),
+            ', '.join(self.quote_name(c) for c in columns),
         ))
 
     def _get_multi_indexes(self, table_name):