Revision 5715
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql.py | ||
---|---|---|
580 | 580 |
func = sql_gen.Function(function_name) |
581 | 581 |
if function_exists(db, func) and msg.find('CAST') < 0: |
582 | 582 |
# not found only because of a missing cast |
583 |
raise MissingCastException('text', None, e) |
|
583 |
type_ = function_param0_type(db, func) |
|
584 |
raise MissingCastException(type_, None, e) |
|
584 | 585 |
raise DoesNotExistException(type_, name, e) |
585 | 586 |
|
586 | 587 |
raise # no specific exception raised |
Also available in: Unified diff
sql.py: parse_exception(): function MissingCastException: Return the actual type of the function's 1st param, using new function_param0_type(), rather than just text