mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-22 08:46:39 -06:00
Fixed API and RESQL test cases for Compound Trigger after the recent changes in EPAS 12.
EPAS 12 Changes: Fix server crash when the compound trigger has both row and statement-level triggers having WHEN clause containing NEW/OLD vars.
This commit is contained in:
parent
b48121335c
commit
7282e15ee2
@ -9,12 +9,6 @@ CREATE OR REPLACE TRIGGER "test_compound_trigger_$%{}[]()&*^!@""'`\/#"
|
||||
COMPOUND TRIGGER
|
||||
var character varying(20) DEFAULT 'Global_var';
|
||||
|
||||
AFTER STATEMENT IS
|
||||
BEGIN
|
||||
DBMS_OUTPUT.PUT_LINE('After Statement: ' || var);
|
||||
var := 'AFTER STATEMENT';
|
||||
END;
|
||||
|
||||
AFTER EACH ROW IS
|
||||
BEGIN
|
||||
DBMS_OUTPUT.PUT_LINE('After each row: ' || var);
|
||||
|
@ -9,12 +9,6 @@ CREATE OR REPLACE TRIGGER "test_compound_trigger_$%{}[]()&*^!@""'`\/#"
|
||||
COMPOUND TRIGGER
|
||||
var character varying(20) DEFAULT 'Global_var';
|
||||
|
||||
BEFORE STATEMENT IS
|
||||
BEGIN
|
||||
DBMS_OUTPUT.PUT_LINE('Before Statement: ' || var);
|
||||
var := 'BEFORE STATEMENT';
|
||||
END;
|
||||
|
||||
BEFORE EACH ROW IS
|
||||
BEGIN
|
||||
DBMS_OUTPUT.PUT_LINE('Before each row: ' || var);
|
||||
|
@ -48,7 +48,7 @@
|
||||
"sql_endpoint": "NODE-compound_trigger.sql_id",
|
||||
"data": {
|
||||
"name": "test_compound_trigger_$%{}[]()&*^!@\"'`\\/#",
|
||||
"prosrc": "var varchar2(20) := 'Global_var';\n\nBEFORE STATEMENT IS\nBEGIN\n\tDBMS_OUTPUT.PUT_LINE('Before Statement: ' || var);\n\tvar := 'BEFORE STATEMENT';\nEND;\n\nBEFORE EACH ROW IS\nBEGIN\n\tDBMS_OUTPUT.PUT_LINE('Before each row: ' || var);\n\tvar := 'BEFORE EACH ROW';\nEND;",
|
||||
"prosrc": "var varchar2(20) := 'Global_var';\n\nBEFORE EACH ROW IS\nBEGIN\n\tDBMS_OUTPUT.PUT_LINE('Before each row: ' || var);\n\tvar := 'BEFORE EACH ROW';\nEND;",
|
||||
"evnt_insert": true,
|
||||
"evnt_update": false,
|
||||
"evnt_delete": false,
|
||||
@ -61,7 +61,7 @@
|
||||
"endpoint": "NODE-compound_trigger.obj_id",
|
||||
"sql_endpoint": "NODE-compound_trigger.sql_id",
|
||||
"data": {
|
||||
"prosrc": "var varchar2(20) := 'Global_var';\n\nAFTER STATEMENT IS\nBEGIN\n\tDBMS_OUTPUT.PUT_LINE('After Statement: ' || var);\n\tvar := 'AFTER STATEMENT';\nEND;\n\nAFTER EACH ROW IS\nBEGIN\n\tDBMS_OUTPUT.PUT_LINE('After each row: ' || var);\n\tvar := 'AFTER EACH ROW';\nEND;",
|
||||
"prosrc": "var varchar2(20) := 'Global_var';\n\nAFTER EACH ROW IS\nBEGIN\n\tDBMS_OUTPUT.PUT_LINE('After each row: ' || var);\n\tvar := 'AFTER EACH ROW';\nEND;",
|
||||
"evnt_update": true,
|
||||
"description": "This is test comment."
|
||||
},
|
||||
|
@ -63,12 +63,9 @@ class CompoundTriggersAddTestCase(BaseTestGenerator):
|
||||
url='/browser/compound_trigger/obj/',
|
||||
data={
|
||||
"prosrc": "var varchar2(20) := 'Global_var';\n\n"
|
||||
"BEFORE STATEMENT IS\nBEGIN\n "
|
||||
"DBMS_OUTPUT.PUT_LINE('Before Statement: ' || var)"
|
||||
";\n var := 'BEFORE STATEMENT';\nEND;\n\nBEFORE "
|
||||
"EACH ROW IS\nBEGIN\n DBMS_OUTPUT.PUT_LINE('"
|
||||
"Before each row: ' || var);\n var := 'BEFORE "
|
||||
"EACH ROW';\nEND;",
|
||||
"BEFORE EACH ROW IS\nBEGIN\n "
|
||||
"DBMS_OUTPUT.PUT_LINE('Before each row: ' || var)"
|
||||
";\n var := 'EACH ROW';\nEND;",
|
||||
"evnt_insert": True,
|
||||
"evnt_update": False,
|
||||
"evnt_delete": False,
|
||||
|
Loading…
Reference in New Issue
Block a user