Revision 5712
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql.py | ||
---|---|---|
578 | 578 |
if match: # includes params, so is call rather than cast to regproc |
579 | 579 |
function_name, = match.groups() |
580 | 580 |
func = sql_gen.Function(function_name) |
581 |
if function_exists(db, func): |
|
581 |
if function_exists(db, func) and msg.find('CAST') < 0:
|
|
582 | 582 |
# not found only because of a missing cast |
583 | 583 |
raise MissingCastException('text', function_name, e) |
584 | 584 |
raise DoesNotExistException(type_, name, e) |
Also available in: Unified diff
sql.py: parse_exception(): function MissingCastException: Only treat DoesNotExistException as a MissingCastException if the query that was run did not already include a cast, to avoid infinite exception-handling recursion