Commits

Andrew Godwin committed 70a0e7a

Fixed #798: Check constraint subtly wrong

Comments (0)

Files changed (1)

south/db/generic.py

             uniq_hash = abs(hash(tuple(params.values()))) 
             d = dict(
                      constraint = "CK_%s_PSTV_%s" % (name, hex(uniq_hash)[2:]),
-                     check = "%s > 0" % self.quote_name(name))
+                     check = "%s >= 0" % self.quote_name(name))
             sqls.append((self.add_check_constraint_fragment % d, []))