Project

General

Profile

« Previous | Next » 

Revision 8819

bugfix: lib/sql.py: parse_exception(): typed_name_re (used by MissingCastException, etc.): don't require "" around the value, because function names in "function does not exist" exceptions are (now?) output without them. this exception did not occur in the last import, but does occur in the automated testing and when running the associated query in pgAdmin (in both Linux and Mac OS X).

View differences:

sql.py
598 598
        name, type_ = match.groups()
599 599
        raise InvalidTypeException(type_, name, e)
600 600
    
601
    typed_name_re = r'^(\S+) "(.+?)"(?: of relation ".+?")?'
601
    typed_name_re = r'^(\S+) "?(.+?)"?(?: of relation ".+?")?'
602 602
    
603 603
    match = re.match(typed_name_re+r'.*? already exists', msg)
604 604
    if match:

Also available in: Unified diff