Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumSQLstored procedures functionsSingle-choice MCQ

What will this PL/pgSQL function return when called as `SELECT add_one(NULL);`?

CREATE FUNCTION add_one(n integer) RETURNS integer LANGUAGE plpgsql STRICT AS $$ BEGIN RETURN n + 1; END; $$;