Revision 2147
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql.py | ||
---|---|---|
620 | 620 |
match = re.search(r'null value in column "(\w+)" violates not-null ' |
621 | 621 |
'constraint', msg) |
622 | 622 |
if match: raise NullValueException([match.group(1)], e) |
623 |
match = re.search(r'table name "(\w+)" specified more than once', msg)
|
|
623 |
match = re.search(r'relation "(\w+)" already exists', msg)
|
|
624 | 624 |
if match: raise DuplicateTableException(match.group(1), e) |
625 | 625 |
raise # no specific exception raised |
626 | 626 |
|
Also available in: Unified diff
sql.py: with_parsed_errors(): Raise DuplicateTableException for "relation already exists" errors instead of "table name specified more than once" errors