Project

General

Profile

« Previous | Next » 

Revision 5792

sql.py: parse_exception(): function MissingCastException: If first param's type is anyelement (for polymorphic function, which had mismatched arg types), use type text, as all types can cast to it

View differences:

sql.py
593 593
                if function_exists(db, func) and msg.find('CAST') < 0:
594 594
                    # not found only because of a missing cast
595 595
                    type_ = function_param0_type(db, func)
596
                    if type_ == 'anyelement': type_ = 'text'
596 597
                    raise MissingCastException(type_, None, e)
597 598
        raise DoesNotExistException(type_, name, e)
598 599
    

Also available in: Unified diff