Fix max(int8) result by making sure int8larger() copies its result
Thomas G. Lockhart <lockhart@fourpalms.org>
Fix max(int8) result by making sure int8larger() copies its result rather than reusing the input storage. Also made the same fix to int8smaller(), though there wasn't a symptom, and went through and verified that other pass-by-reference data types do the same thing. Not an issue for the by-value types.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/int8.c | modified | +2 −19 |