BUG #14184: Function is running correct but not showing output

From: zzia88(at)gmail(dot)com
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #14184: Function is running correct but not showing output
Date: 2016-06-13 13:40:25
Message-ID: 20160613134025.5792.79374@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 14184
Logged by: Zubair Alam
Email address: zzia88(at)gmail(dot)com
PostgreSQL version: 9.5.3
Operating system: windows7-x64(64 bit)
Description:

postgresql-9.5.3-1-windows-x64
-----<<<<<<My function Coding>>>>----
CREATE OR REPLACE FUNCTION FACTORIAL(IN NUM BIGINT,OUT FACT BIGINT) AS $$
DECLARE
FACT BIGINT;
BEGIN
FOR I IN REVERSE 1..NUM LOOP
FACT:=FACT*I;
END LOOP;
END;
$$ LANGUAGE plpgsql;
-----<<<<<<<<<<<<>>>>>>>>>>>>>-----
SELECT* FROM FACTORIAL(5);

IT SHOWING NULL VALUE...

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message torben 2016-06-13 14:01:19 BUG #14185: Indentation error in win32.mak let libpq compile fail on USE_OPENSSL=1 -- fix available
Previous Message hubert depesz lubaczewski 2016-06-13 13:39:05 Re: PostgreSQL (9.3 and 9.6) eats all memory when using many tables