change tests for modified function output

This commit is contained in:
Robert Lechte 2018-10-26 12:48:24 +11:00
parent d109ac3393
commit d1113d63d3
2 changed files with 28 additions and 20 deletions

View File

@ -110,27 +110,31 @@ alter table "public"."products" alter column "x" drop not null;
set check_function_bodies = off;
create or replace function "public"."newfunc"(i integer, t text[])
returns TABLE(a text, c integer) as
$$
CREATE OR REPLACE FUNCTION public.newfunc(i integer, t text[])
RETURNS TABLE(a text, c integer)
LANGUAGE plpgsql
STABLE STRICT
AS $function$
declare
BEGIN
select 'no', 1;
END;
$$
language PLPGSQL STABLE RETURNS NULL ON NULL INPUT SECURITY INVOKER;
$function$
create or replace function "public"."changed"(i integer, t text[])
returns TABLE(a text, c integer) as
$$
CREATE OR REPLACE FUNCTION public.changed(i integer, t text[])
RETURNS TABLE(a text, c integer)
LANGUAGE plpgsql
STRICT SECURITY DEFINER
AS $function$
declare
BEGIN
select 'no', 1;
END;
$$
language PLPGSQL VOLATILE RETURNS NULL ON NULL INPUT SECURITY DEFINER;
$function$
create materialized view "public"."matvvv" as SELECT 2;

View File

@ -106,27 +106,31 @@ alter table "public"."products" alter column "x" drop not null;
set check_function_bodies = off;
create or replace function "public"."newfunc"(i integer, t text[])
returns TABLE(a text, c integer) as
$$
CREATE OR REPLACE FUNCTION public.newfunc(i integer, t text[])
RETURNS TABLE(a text, c integer)
LANGUAGE plpgsql
STABLE STRICT
AS $function$
declare
BEGIN
select 'no', 1;
END;
$$
language PLPGSQL STABLE RETURNS NULL ON NULL INPUT SECURITY INVOKER;
$function$
create or replace function "public"."changed"(i integer, t text[])
returns TABLE(a text, c integer) as
$$
CREATE OR REPLACE FUNCTION public.changed(i integer, t text[])
RETURNS TABLE(a text, c integer)
LANGUAGE plpgsql
STRICT SECURITY DEFINER
AS $function$
declare
BEGIN
select 'no', 1;
END;
$$
language PLPGSQL VOLATILE RETURNS NULL ON NULL INPUT SECURITY DEFINER;
$function$
create materialized view "public"."matvvv" as SELECT 2;