Project

General

Profile

« Previous | Next » 

Revision 5709

sql.py: parse_exception(): function MissingCastException: Don't match quotes around the function name because this particular exception (incorrect param type) does not include them. Casts to regproc, which also produce a DoesNotExistException, include the quotes but do not indicate a MissingCastException.

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, = match.groups()
580 580
                if msg.split('\n')[1].find(function_name) >= 0: # also on line 2

Also available in: Unified diff