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:39
Message-ID: 20060612160939.AC3119FA5E1@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.

Tags:
----
REL8_1_STABLE

Modified Files:
--------------
pgsql/src/backend/utils/adt:
int.c (r1.68.2.1 -> r1.68.2.2)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/int.c.diff?r1=1.68.2.1&r2=1.68.2.2)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2006-06-12 16:15:07 pgsql: Add URL for bitmap AM: >
Previous Message Bruce Momjian 2006-06-12 16:09:11 pgsql: Win32 can't catch the exception thrown by INT_MIN / -1 or INT_MIN