Revision 4145
Added by Aaron Marcuse-Kubitza about 12 years ago
sql.py | ||
---|---|---|
565 | 565 |
type_, name = match.groups() |
566 | 566 |
raise DuplicateException(type_, name, e) |
567 | 567 |
|
568 |
match = re.match(r'more than one (\S+) named ""(.+?)""', msg) |
|
569 |
if match: |
|
570 |
type_, name = match.groups() |
|
571 |
raise DuplicateException(type_, name, e) |
|
572 |
|
|
568 | 573 |
match = re.match(typed_name_re+r' does not exist', msg) |
569 | 574 |
if match: |
570 | 575 |
type_, name = match.groups() |
Also available in: Unified diff
sql.py: run_query(): Parse "more than one" errors as DuplicateExceptions