diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2000-02-24 01:59:17 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2000-02-24 01:59:17 +0000 |
commit | 512669db9ee465cf3b2bf9c8817381696aa7c5fb (patch) | |
tree | 4eed7ed158dcfc3c4537f9b4a4668ebea0ad48e9 /src/backend/utils/adt/numeric.c | |
parent | 399a570fe269d7a2773b7f975caad4003e781982 (diff) | |
download | postgresql-512669db9ee465cf3b2bf9c8817381696aa7c5fb.tar.gz postgresql-512669db9ee465cf3b2bf9c8817381696aa7c5fb.zip |
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.
Diffstat (limited to 'src/backend/utils/adt/numeric.c')
0 files changed, 0 insertions, 0 deletions