pgsql: Win32 can't catch the exception thrown by INT_MIN / -1 or INT_MIN

From: momjian(at)postgresql(dot)org (Bruce Momjian)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Win32 can't catch the exception thrown by INT_MIN / -1 or INT_MIN
Date: 2006-06-12 16:09:11
Message-ID: 20060612160911.6CC4D9FA5C8@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
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.

Modified Files:
--------------
pgsql/src/backend/utils/adt:
int.c (r1.72 -> r1.73)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/int.c.diff?r1=1.72&r2=1.73)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2006-06-12 16:09:39 pgsql: Win32 can't catch the exception thrown by INT_MIN / -1 or INT_MIN
Previous Message Dave Page 2006-06-12 15:25:42 Re: psqlodbc - psqlodbc: The version is now 8.2.0005.