Project

General

Profile

« Previous | Next » 

Revision 3347

sql.py: run_query(): ConstraintException: Include table in the constraint name because constraints are scoped by table

View differences:

lib/sql.py
529 529
                r'constraint "(.+?)"', msg)
530 530
            if match:
531 531
                table, constraint = match.groups()
532
                raise CheckException(constraint, None, [], e)
532
                constraint = sql_gen.Col(constraint, table)
533
                raise CheckException(constraint.to_str(db), None, [], e)
533 534
            
534 535
            match = re.match(r'^(?:invalid input (?:syntax|value)\b.*?'
535 536
                r'|.+? field value out of range): "(.+?)"', msg)

Also available in: Unified diff