Project

General

Profile

« Previous | Next » 

Revision 5710

sql.py: parse_exception(): function MissingCastException: Documented that the regexp match to extract the function name also checks that a function signature with param types was matched, indicating a function call rather than cast to regproc. This check will also help avoid infinite recursion when function MissingCastException parsing calls database structure introspection functions.

View differences:

lib/sql.py
575 575
        type_, name = match.groups()
576 576
        if type_ == 'function':
577 577
            match = re.match(r'^(.+?)\(.*\)$', name)
578
            if match:
578
            if match: # includes params, so is call rather than cast to regproc
579 579
                function_name, = match.groups()
580 580
                if msg.split('\n')[1].find(function_name) >= 0: # also on line 2
581 581
                    # not found only because of a missing cast

Also available in: Unified diff