Skip to content

Commit 0068c7b

Browse files
committed
Format FOR IN EXECUTE LOOP
1 parent 81d0aa8 commit 0068c7b

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
@@ -73,4 +73,12 @@ describe("loops", () => {
7373
END LOOP
7474
`);
7575
});
76+
77+
it(`formats FOR .. IN EXECUTE .. LOOP`, async () => {
78+
await testPlpgsql(dedent`
79+
FOR n IN EXECUTE 'SELECT num FROM nums WHERE p > ?' USING foo LOOP
80+
x = x + n;
81+
END LOOP
82+
`);
83+
});
7684
});

0 commit comments

Comments
 (0)