Project

General

Profile

« Previous | Next » 

Revision 4141

sql.py: run_query(): Parse "could not determine polymorphic type because input has type "unknown"" errors as MissingCastExceptions to type text. This adds support for polymorphic SQL functions whose parameters are anyelement, etc.

View differences:

lib/sql.py
554 554
                col, type_ = match.groups()
555 555
                raise MissingCastException(type_, col, e)
556 556
            
557
            match = re.match(r'^could not determine polymorphic type because '
558
                r'input has type "unknown"', msg)
559
            if match: raise MissingCastException('text', None, e)
560
            
557 561
            typed_name_re = r'^(\S+) "(.+?)"'
558 562
            
559 563
            match = re.match(typed_name_re+r'.*? already exists', msg)

Also available in: Unified diff