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
Copy file name to clipboardExpand all lines: crates/pgt_statement_splitter/src/lib.rs
+16
Original file line number
Diff line number
Diff line change
@@ -180,6 +180,22 @@ mod tests {
180
180
Tester::from("/* this is a test */\nselect 1").expect_statements(vec!["select 1"]);
181
181
}
182
182
183
+
#[test]
184
+
fntrigger_instead_of(){
185
+
Tester::from(
186
+
"CREATE OR REPLACE TRIGGER my_trigger
187
+
INSTEAD OF INSERT ON my_table
188
+
FOR EACH ROW
189
+
EXECUTE FUNCTION my_table_trigger_fn();",
190
+
)
191
+
.expect_statements(vec![
192
+
"CREATE OR REPLACE TRIGGER my_trigger
193
+
INSTEAD OF INSERT ON my_table
194
+
FOR EACH ROW
195
+
EXECUTE FUNCTION my_table_trigger_fn();",
196
+
]);
197
+
}
198
+
183
199
#[test]
184
200
fnwith_check(){
185
201
Tester::from("create policy employee_insert on journey_execution for insert to authenticated with check ((select private.organisation_id()) = organisation_id);")
0 commit comments