]> granicus.if.org Git - postgresql/commit
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:11 +0000 (16:09 +0000)
committerBruce Momjian <bruce@momjian.us>
Mon, 12 Jun 2006 16:09:11 +0000 (16:09 +0000)
commit9fc6f4e1ae107f44807c4906105e1f7eb052ecb1
tree7be45ddcc5b783c60121ef1c1080a93b05bc6cb8
parente71e02d92652b7213e019045d710cfca226993c7
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