Project

General

Profile

« Previous | Next » 

Revision 10548

bugfix: lib/sql.py: parse_exception(): MissingCastException from DoesNotExistException for function: handle overloaded functions where none of the overloads supports the given arg types (so assume text). this may have become a bug from system upgrades?

View differences:

lib/sql.py
624 624
                func = sql_gen.Function(function_name)
625 625
                if function_exists(db, func) and msg.find('CAST') < 0:
626 626
                    # not found only because of a missing cast
627
                    type_ = function_param0_type(db, func)
627
                    try: type_ = function_param0_type(db, func)
628
                    except DuplicateException: type_ = 'text'
628 629
                    col = None
629 630
                    if type_ == 'anyelement': type_ = 'text'
630 631
                    elif type_ == 'hstore': # cast just the value param

Also available in: Unified diff