Project

General

Profile

« Previous | Next » 

Revision 5724

sql.py: parse_exception(): types cannot be matched MissingCastException: Use the first type as the type to cast to instead of text

View differences:

lib/sql.py
556 556
        r'input has type "unknown"', msg)
557 557
    if match: raise MissingCastException('text', None, e)
558 558
    
559
    match = re.match(r'^.+? types .+? and .+? cannot be matched', msg)
560
    if match: raise MissingCastException('text', None, e)
559
    match = re.match(r'^.+? types (.+?) and (.+?) cannot be matched', msg)
560
    if match:
561
        type0, type1 = match.groups()
562
        raise MissingCastException(type0, None, e)
561 563
    
562 564
    typed_name_re = r'^(\S+) "?(.+?)"?(?: of relation ".+?")?'
563 565
    

Also available in: Unified diff