Skip to content

Commit 4b6b69e

Browse files
committed
Multiline indented query test case
1 parent f107302 commit 4b6b69e

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

named_test.go

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,37 @@ func TestFixBounds(t *testing.T) {
391391
expect: `INSERT INTO table_values (a, b) VALUES (:a, :b),(:a, :b)`,
392392
loop: 2,
393393
},
394+
{
395+
name: `multiline indented query`,
396+
query: `INSERT INTO foo (
397+
a,
398+
b,
399+
c,
400+
d
401+
) VALUES (
402+
:name,
403+
:age,
404+
:first,
405+
:last
406+
)`,
407+
expect: `INSERT INTO foo (
408+
a,
409+
b,
410+
c,
411+
d
412+
) VALUES (
413+
:name,
414+
:age,
415+
:first,
416+
:last
417+
),(
418+
:name,
419+
:age,
420+
:first,
421+
:last
422+
)`,
423+
loop: 2,
424+
},
394425
}
395426

396427
for _, tc := range table {

0 commit comments

Comments
 (0)