Project

General

Profile

« Previous | Next » 

Revision 5690

sql.py: parse_exception(): function MissingCastException: Support functions with named parameters

View differences:

lib/sql.py
574 574
    if match:
575 575
        type_, name = match.groups()
576 576
        if type_ == 'function':
577
            match = re.match(r'^"?(.+?)"?\(([^,)]+).*\)$', name)
577
            match = re.match(r'^"?(.+?)"?\((?:.+? := )?([^,)]+).*\)$', name)
578 578
            if match:
579 579
                function_name, param0_type = match.groups()
580 580
                if msg.split('\n')[1].find(function_name) >= 0: # also on line 2

Also available in: Unified diff