Revision 5724
Added by Aaron Marcuse-Kubitza about 12 years ago
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
sql.py: parse_exception(): types cannot be matched MissingCastException: Use the first type as the type to cast to instead of text