Win32 can't catch the exception thrown by INT_MIN / -1 or INT_MIN * -1,

Bruce Momjian <bruce@momjian.us>

Commit: 9fc6f4e1ae107f44807c4906105e1f7eb052ecb1
Author: Bruce Momjian <bruce@momjian.us>
Date: 2006-06-12T16:09:11Z
Releases: 8.2.0
Win32 can't catch the exception thrown by INT_MIN / -1 or INT_MIN * -1,
so on that platform we test for those before the computation and throw
an "out of range" error.

Backpatch to 8.1.X.

Files

PathChange+/−
src/backend/utils/adt/int.c modified +23 −1