You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi everyone,
I have an issue using apgdif 2.0.6 with the creation of a trigger.
All the previous trigger did not cause the issue except for this one.
The issue can easily be created using the command :
java -jar apgdiff-2.6.0.jar prod.sql dev.sql
With dev.sql :
CREATE TABLE test
(
id uuid DEFAULT public.gen_random_uuid() NOT NULL,
name text NOT NULL
);
CREATE FUNCTION trigger_test() RETURNS trigger
LANGUAGE plpgsql SECURITY DEFINER
AS $$
begin
RAISE LOG 'test';
return null;
end;
$$;
CREATE TRIGGER test_write INSTEAD OF INSERT OR UPDATE OR DELETE ON test FOR EACH ROW EXECUTE PROCEDURE trigger_test();
And prod.sql is an empty file
The text was updated successfully, but these errors were encountered:
Exception in thread "main" java.lang.NullPointerException
at cz.startnet.utils.pgdiff.PgDiffTriggers.getEnablerOrDisableTriggers(PgDiffTriggers.java:222)
at cz.startnet.utils.pgdiff.PgDiffTriggers.disableOrEnableTriggers(PgDiffTriggers.java:256)
at cz.startnet.utils.pgdiff.PgDiff.updateSchemas(PgDiff.java:321)
at cz.startnet.utils.pgdiff.PgDiff.diffDatabaseSchemas(PgDiff.java:144)
at cz.startnet.utils.pgdiff.PgDiff.createDiff(PgDiff.java:46)
at cz.startnet.utils.pgdiff.Main.main(Main.java:39)
Hi everyone,
I have an issue using apgdif 2.0.6 with the creation of a trigger.
All the previous trigger did not cause the issue except for this one.
The issue can easily be created using the command :
java -jar apgdiff-2.6.0.jar prod.sql dev.sql
With dev.sql :
And prod.sql is an empty file
The text was updated successfully, but these errors were encountered: