Win32 can't catch the exception thrown by INT_MIN / -1 or INT_MIN * -1,
authorBruce Momjian <bruce@momjian.us>
Mon, 12 Jun 2006 16:09:39 +0000 (16:09 +0000)
committerBruce Momjian <bruce@momjian.us>
Mon, 12 Jun 2006 16:09:39 +0000 (16:09 +0000)
commit172c0fe61acd2c081daf1f8898c69d7b968b96be
tree1c05c110d555054800bbefe51643225f3145ecd9
parentb210ab4e8b6101d1f6046b076a60977bae05c5a7
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.
src/backend/utils/adt/int.c