Attempt to fix breakage caused by signed integer conversion patch.
Robert Haas <rhaas@postgresql.org>
Attempt to fix breakage caused by signed integer conversion patch. Use INT_MIN rather than INT32_MIN as we do elsewhere in the code, and try to work around nonexistence of INT64_MIN if necessary. Adjust the new regression tests to something hopefully saner, per observation by Tom Lane.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/numutils.c | modified | +11 −1 |
| src/test/regress/expected/int2.out | modified | +6 −6 |
| src/test/regress/expected/int4.out | modified | +7 −7 |
| src/test/regress/expected/int8.out | modified | +9 −9 |
| src/test/regress/sql/int2.sql | modified | +2 −2 |
| src/test/regress/sql/int4.sql | modified | +3 −3 |
| src/test/regress/sql/int8.sql | modified | +3 −3 |