Revision 4141
Added by Aaron Marcuse-Kubitza over 12 years ago
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
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.