Project

General

Profile

« Previous | Next » 

Revision 4509

sql.py: run_query(): DuplicateException: Also match "of relation" part of error message, so that parsed column name does not contain "of relation"

View differences:

lib/sql.py
562 562
            match = re.match(r'^.+? types .+? and .+? cannot be matched', msg)
563 563
            if match: raise MissingCastException('text', None, e)
564 564
            
565
            typed_name_re = r'^(\S+) "(.+?)"'
565
            typed_name_re = r'^(\S+) "(.+?)"(?: of relation ".+?")?'
566 566
            
567 567
            match = re.match(typed_name_re+r'.*? already exists', msg)
568 568
            if match:

Also available in: Unified diff