Revise parse_coerce() to handle coercion of int and float
Tom Lane <tgl@sss.pgh.pa.us>
Revise parse_coerce() to handle coercion of int and float constants, not only string constants, at parse time. Get rid of parser_typecast2(), which is bogus and redundant...
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/parser/parse_coerce.c | modified | +83 −56 |
| src/backend/parser/parse_expr.c | modified | +10 −160 |
| src/backend/parser/parse_func.c | modified | +2 −15 |
| src/backend/parser/parse_type.c | modified | +15 −4 |
| src/include/parser/parse_expr.h | modified | +1 −2 |
| src/include/parser/parse_type.h | modified | +3 −2 |