Revision 851
Added by Aaron Marcuse-Kubitza almost 13 years ago
sql.py | ||
---|---|---|
190 | 190 |
constraint, table = match.groups() |
191 | 191 |
try: cols = constraint_cols(db, table, constraint) |
192 | 192 |
except NotImplementedError: raise e |
193 |
else: raise DuplicateKeyException(cols[0], e)
|
|
193 |
else: raise DuplicateKeyException(cols, e) |
|
194 | 194 |
match = re.search(r'null value in column "(\w+)" violates not-null ' |
195 | 195 |
'constraint', msg) |
196 | 196 |
if match: raise NullValueException([match.group(1)], e) |
Also available in: Unified diff
sql.py: Fixed bug in try_insert() where DuplicateKeyException was passed only cols0 instead of cols array