Skip to content

Commit 81d0aa8

Browse files
committed
Format FOR IN query LOOP
1 parent 7e592f7 commit 81d0aa8

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

test/proc/loops.test.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,12 @@ describe("loops", () => {
6565
END LOOP
6666
`);
6767
});
68+
69+
it(`formats FOR .. IN query LOOP`, async () => {
70+
await testPlpgsql(dedent`
71+
FOR n IN SELECT num FROM nums LOOP
72+
x = x + n;
73+
END LOOP
74+
`);
75+
});
6876
});

0 commit comments

Comments
 (0)