sql.py: Added constraint_cols() to get columns of a constraint for use in determining the columns for a DuplicateKeyException
sql.py: Added constraint_cols() to get columns of a constraint for use in determining the columns for a DuplicateKeyException