OSDN Git Service

Add numeric <-> int8 and numeric <-> int2 conversion functions, as well
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 24 Feb 2000 02:05:30 +0000 (02:05 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 24 Feb 2000 02:05:30 +0000 (02:05 +0000)
commit9110b33f46bf371909b5366c0e05464ccba6ebd9
tree56d9ea5e2d6c17252f1749bbfddff247740a713e
parent512669db9ee465cf3b2bf9c8817381696aa7c5fb
Add numeric <-> int8 and numeric <-> int2 conversion functions, as well
as a unary minus operator for numeric.  Now that long numeric constants
will get converted to NUMERIC in early parsing, it's essential to have
numeric->int8 conversion to avoid 'can't convert' errors on undecorated
int8 constants.  Threw in the rest for completeness while I was in the
area.
I did not force an initdb for this, since the system will still run
without the new pg_proc/pg_operator entries.  Possibly I should've.
src/backend/utils/adt/numeric.c
src/include/catalog/pg_operator.h
src/include/catalog/pg_proc.h
src/include/utils/builtins.h