Re: Math Huh?

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Math Huh?
Date: 2002-05-30 23:59:43
Message-ID: 200205301659.43775.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


Tom,

> (yawn) int4 overflow. Use float or numeric if you want overflow
> robustness...

Shouldn't it give me an error? This does:

SELECT (255^4)::INT4

--
-Josh Berkus

______AGLIO DATABASE SOLUTIONS___________________________
Josh Berkus
Complete information technology josh(at)agliodbs(dot)com
and data management solutions (415) 565-7293
for law firms, small businesses fax 621-2533
and non-profit organizations. San Francisco

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Larry Rosenman 2002-05-31 00:36:57 Re: Math Huh?
Previous Message David Stanaway 2002-05-30 23:48:47 Re: Math Huh?