Commits

Andrew Godwin committed e8ff464

Fixed #952: Do comparisons on columns case-insensitively.

Comments (0)

Files changed (1)

south/db/generic.py

             raise ValueError("Cannot get constraints for columns during a dry run.")
 
         if columns is not None:
-            columns = set(columns)
+            columns = set(map(lambda s: s.lower(), columns))
 
         db_name = self._get_setting('NAME')
 
             for kind, cname in constraints:
                 if kind == type:
                     cnames.setdefault(cname, set())
-                    cnames[cname].add(col)
+                    cnames[cname].add(col.lower())
 
         for cname, cols in cnames.items():
             if cols == columns or columns is None: