Revision 5823
Added by Aaron Marcuse-Kubitza about 12 years ago
lib/sql.py | ||
---|---|---|
529 | 529 |
r'DETAIL: Key .+? is duplicated', msg) |
530 | 530 |
if match: |
531 | 531 |
constraint, = match.groups() |
532 |
raise make_DuplicateKeyException(constraint, e)
|
|
532 |
raise DuplicateKeyException(constraint, None, [], e)
|
|
533 | 533 |
|
534 | 534 |
match = re.match(r'^null value in column "(.+?)" violates not-null' |
535 | 535 |
r' constraint', msg) |
Also available in: Unified diff
sql.py: parse_exception(): "could not create unique index" DuplicateKeyException: Fixed bug where can't use make_DuplicateKeyException() because it tries to retrieve information about the index in question, but the index it was trying to create doesn't exist