Revision 2242
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql.py | ||
---|---|---|
366 | 366 |
r'constraint', msg) |
367 | 367 |
if match: raise NullValueException([match.group(1)], e) |
368 | 368 |
|
369 |
match = re.search(r'invalid input value\b.*: "(\w+)"\n'
|
|
370 |
r'CONTEXT:.*\bfunction "(\w+)".*\bat assignment', msg)
|
|
369 |
match = re.search(r'invalid input (?:syntax|value)\b.*: "(\w+)"\n'
|
|
370 |
r'(?:(?s).*)\bfunction "(\w+)".*\bat assignment', msg)
|
|
371 | 371 |
if match: |
372 | 372 |
raise FunctionValueException(match.group(2), match.group(1), e) |
373 | 373 |
|
Also available in: Unified diff
sql.py: run_query(): Also parse "invalid input syntax at assignment" errors as FunctionValueExceptions