Re: [GENERAL] division by zero

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Merlin Moncure" <merlin(dot)moncure(at)rcsonline(dot)com>
Cc: "Bruce Momjian" <pgman(at)candle(dot)pha(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [GENERAL] division by zero
Date: 2003-03-10 20:13:01
Message-ID: 19657.1047327181@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Merlin Moncure" <merlin(dot)moncure(at)rcsonline(dot)com> writes:
> After fighting with the docs a little bit, here is how to handle an
> int/0 in a C application.

> __try
> {
> puts("in try");
> a = 0/b;
> }
> __except( HandleException(GetExceptionCode()) )
> {
> puts("in except");
> }

This is not C.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Merlin Moncure 2003-03-10 20:47:31 Re: [GENERAL] division by zero
Previous Message Tom Lane 2003-03-10 19:52:55 Re: Roadmap for FE/BE protocol redesign