Skip to content

Commit d2d69d6

Browse files
committed
progress
1 parent af18ae4 commit d2d69d6

File tree

1 file changed

+16
-0
lines changed
  • crates/pgt_statement_splitter/src

1 file changed

+16
-0
lines changed

crates/pgt_statement_splitter/src/lib.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,22 @@ mod tests {
276276
Tester::from("/* this is a test */\nselect 1").expect_statements(vec!["select 1"]);
277277
}
278278

279+
#[test]
280+
fn trigger_instead_of() {
281+
Tester::from(
282+
"CREATE OR REPLACE TRIGGER my_trigger
283+
INSTEAD OF INSERT ON my_table
284+
FOR EACH ROW
285+
EXECUTE FUNCTION my_table_trigger_fn();",
286+
)
287+
.expect_statements(vec![
288+
"CREATE OR REPLACE TRIGGER my_trigger
289+
INSTEAD OF INSERT ON my_table
290+
FOR EACH ROW
291+
EXECUTE FUNCTION my_table_trigger_fn();",
292+
]);
293+
}
294+
279295
#[test]
280296
fn with_recursive() {
281297
Tester::from(

0 commit comments

Comments
 (0)