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

From: pgsql-bugs(at)postgresql(dot)org
To: pgsql-bugs(at)postgresql(dot)org
Subject: Bug #864: MOD(RANDOM(),1.0) don't work in 7.3.1
Date: 2003-01-05 20:38:16
Message-ID: 20030105203816.65BC6475B8C@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Sverre H. Huseby (shh(at)thathost(dot)com) reports a bug with a severity of 3
The lower the number the more severe it is.

Short Description
MOD(RANDOM(),1.0) don't work in 7.3.1

Long Description
I just upgraded from 7.2.3 to 7.3.1. Something has changed, as one of my old queries no longer works:

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.

Sample Code

No file was uploaded with this report

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Nathan Mueller 2003-01-05 21:07:50 Re: More SSL patches
Previous Message Tom Lane 2003-01-05 04:47:52 Re: Serialize transactions