Revision 470
Added by Aaron Marcuse-Kubitza almost 13 years ago
lib/sql.py | ||
---|---|---|
135 | 135 |
else: raise DuplicateKeyException(cols[0], e) |
136 | 136 |
match = re.search(r'null value in column "(\w+)" violates not-null ' |
137 | 137 |
'constraint', msg) |
138 |
if match: raise NullValueException(match.group(1), e)
|
|
138 |
if match: raise NullValueException([match.group(1)], e)
|
|
139 | 139 |
raise # no specific exception raised |
140 | 140 |
|
141 | 141 |
def pkey(db, cache, table): # Assumed to be first column in table |
Also available in: Unified diff
sql.py: Fixed raising of NullValueException to pass array of columns rather than single column