Re: Bug #864: MOD(RANDOM(),1.0) don't work in 7.3.1

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: shh(at)thathost(dot)com, pgsql-bugs(at)postgresql(dot)org
Subject: Re: Bug #864: MOD(RANDOM(),1.0) don't work in 7.3.1
Date: 2003-01-05 22:02:54
Message-ID: 11123.1041804174@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

pgsql-bugs(at)postgresql(dot)org writes:
> SELECT MOD(RANDOM(),1.0);
> ERROR: Function mod(double precision, numeric) does not exist
> Unable to identify a function that satisfies the given argument types
> You may need to add explicit typecasts

> I was able to work around it by casting RANDOM() to NUMERIC.

This is not a bug, but an intentional change: float->numeric isn't an
implicit cast anymore.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Sverre H. Huseby 2003-01-05 22:24:30 Re: Bug #864: MOD(RANDOM(),1.0) don't work in 7.3.1
Previous Message Nathan Mueller 2003-01-05 21:07:50 Re: More SSL patches