Commit 091159d4 authored by Rafael De Lima Prado's avatar Rafael De Lima Prado
Browse files

database: Add fuction verify_null


Signed-off-by: Rafael De Lima Prado's avatarRafael de Lima Prado <rlp09@inf.ufpr.br>
parent 3b0ddb98
CREATE OR REPLACE FUNCTION verify_null(integer) RETURNS integer AS $$
SELECT CASE
WHEN $1 IS NULL THEN 0
ELSE $1
END;
$$ LANGUAGE SQL;
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