Commit 2fa57f31 authored by Stephane Crozat's avatar Stephane Crozat

fix bug ROUND needed in indicator function in order to return a INTEGER, not...

fix bug ROUND needed in indicator function in order to return a INTEGER, not detected locally probably cause of postgres version
parent da872c20
......@@ -93,7 +93,7 @@ INSERT INTO subscribe (utclogin,api,subdate) VALUES (
);
SELECT normcode, name, size, nbval, nbask, nbsub, open FROM vapi;
SELECT normcode, name, size, nbval, nbask, nbsub, open, resplogin, semester, year FROM vapi;
SELECT * FROM vlocaluser;
SELECT utclogin, id, normcode, validation FROM vsubscription;
......
......@@ -51,7 +51,7 @@ BEGIN
ELSIF nb_sub = 1 THEN
RETURN 100;
ELSE
RETURN 100 * (1 - (nb_sub / nb_api));
RETURN ROUND(100 * (1 - (nb_sub / nb_api)));
END IF;
END;
$$ LANGUAGE PLPGSQL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment