mirror of
https://github.com/djrobstep/migra.git
synced 2024-10-26 07:00:54 +03:00
change tests for modified function output
This commit is contained in:
parent
d109ac3393
commit
d1113d63d3
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user