Skip to content

Commit

Permalink
Add a test case for get_trigger_object_address_hook usage change
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Kasko <[email protected]>
  • Loading branch information
staticlibs committed Mar 7, 2024
1 parent 195044d commit c3ae3f8
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
27 changes: 27 additions & 0 deletions test/JDBC/expected/comment_on_pg_trigger.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
-- psql

CREATE TABLE test1(id1 int);
GO

CREATE OR REPLACE FUNCTION func1()
RETURNS "trigger" AS
'BEGIN
RETURN NEW;
END;'
LANGUAGE 'plpgsql' VOLATILE;
GO

CREATE TRIGGER trig1 BEFORE UPDATE
ON test1 FOR EACH ROW
EXECUTE PROCEDURE func1();
GO

COMMENT ON TRIGGER trig1 ON test1 IS 'hello1';
GO

DROP TRIGGER trig1 ON test1;
GO
DROP FUNCTION func1;
GO
DROP TABLE test1;
GO
27 changes: 27 additions & 0 deletions test/JDBC/input/triggers/comment_on_pg_trigger.mix
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
-- psql

CREATE TABLE test1(id1 int);
GO

CREATE OR REPLACE FUNCTION func1()
RETURNS "trigger" AS
'BEGIN
RETURN NEW;
END;'
LANGUAGE 'plpgsql' VOLATILE;
GO

CREATE TRIGGER trig1 BEFORE UPDATE
ON test1 FOR EACH ROW
EXECUTE PROCEDURE func1();
GO

COMMENT ON TRIGGER trig1 ON test1 IS 'hello1';
GO

DROP TRIGGER trig1 ON test1;
GO
DROP FUNCTION func1;
GO
DROP TABLE test1;
GO

0 comments on commit c3ae3f8

Please sign in to comment.