Revision 2140
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql.py | ||
---|---|---|
606 | 606 |
except Exception, e: |
607 | 607 |
msg = str(e) |
608 | 608 |
match = re.search(r'duplicate key value violates unique constraint ' |
609 |
r'"(([^\W_]+)_[^"]+)"', msg) |
|
609 |
r'"((_?[^\W_]+)_[^"]+)"', msg)
|
|
610 | 610 |
if match: |
611 | 611 |
constraint, table = match.groups() |
612 | 612 |
try: cols = index_cols(db, table, constraint) |
Also available in: Unified diff
sql.py: with_parsed_errors(): Support table names that start with "_"