Fix max(int8) result by making sure int8larger() copies its result

Thomas G. Lockhart <lockhart@fourpalms.org>

Commit: 1d1cf38c0d02908e3c6520dab94c878947ca8152
Author: Thomas G. Lockhart <lockhart@fourpalms.org>
Date: 1999-04-15T13:34:45Z
Releases: 7.1.1
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

PathChange+/−
src/backend/utils/adt/int8.c modified +2 −19