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

Bruce Momjian <bruce@momjian.us>

Commit: f7a0b645f548180bd3a6ef194369500605573e0e
Author: Bruce Momjian <bruce@momjian.us>
Date: 2006-06-12T16:09:39Z
Releases: 8.1.5
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