OSDN Git Service

Make make_const() check the size and precision of a T_Float Value,
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 24 Feb 2000 01:59:17 +0000 (01:59 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 24 Feb 2000 01:59:17 +0000 (01:59 +0000)
commit512669db9ee465cf3b2bf9c8817381696aa7c5fb
tree4eed7ed158dcfc3c4537f9b4a4668ebea0ad48e9
parent399a570fe269d7a2773b7f975caad4003e781982
Make make_const() check the size and precision of a T_Float Value,
and produce either FLOAT8 or NUMERIC output depending on whether the
value fits in a float8 or not.  This is almost back to the way the
code was before I changed T_Float, but there is a critical difference:
now, when a numeric constant doesn't fit in float8, it will be treated
as type NUMERIC instead of type UNKNOWN.
src/backend/parser/gram.y
src/backend/parser/parse_node.c