We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bb9cdd commit 5daa583Copy full SHA for 5daa583
test/features/between.ts
@@ -21,4 +21,12 @@ export default function supportsBetween(format: FormatFn) {
21
// Not ideal, but better than crashing
22
expect(format('foo BETWEEN 1+2 AND 3+4')).toBe('foo BETWEEN 1 + 2 AND 3 + 4');
23
});
24
+
25
+ it('supports CASE inside BETWEEN', () => {
26
+ expect(format('foo BETWEEN CASE x WHEN 1 THEN 2 END AND 3')).toBe(dedent`
27
+ foo BETWEEN CASE x
28
+ WHEN 1 THEN 2
29
+ END AND 3
30
+ `);
31
+ });
32
}
0 commit comments