Skip to content

Commit

Permalink
Fixed After and Instead of trigger issues on table (babelfish-for-pos…
Browse files Browse the repository at this point in the history
…tgresql#2425)

1. If an After trigger exists on table, it is skipped  after instead of
 trigger is fired on same table in Babelfish.

2. Query execution and After trigger is skipped on table in babelfish
 when it has a disabled Instead of Trigger

Task: BABEL-4672 and BABEL-4801
Signed-off-by: Deepakshi Mittal <[email protected]>
  • Loading branch information
deepakshi-mittal authored Mar 13, 2024
1 parent 8f6df54 commit 59b3884
Show file tree
Hide file tree
Showing 28 changed files with 1,135 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/JDBC/expected/BABEL-4672-vu-cleanup.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
DROP VIEW IF EXISTS vw_emp_salary;
GO

DROP TABLE IF EXISTS tbl_emp_salary;
GO

DROP TABLE IF EXISTS emp_salary;
GO
8 changes: 8 additions & 0 deletions test/JDBC/expected/BABEL-4672-vu-prepare.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
CREATE TABLE emp_salary(emp_id int, salary int);
GO

CREATE TABLE tbl_emp_salary(emp_id int, salary int);
GO

CREATE VIEW vw_emp_salary as SELECT * FROM tbl_emp_salary;
GO
Loading

0 comments on commit 59b3884

Please sign in to comment.