Skip to content

Commit

Permalink
Multiline indented query test case
Browse files Browse the repository at this point in the history
  • Loading branch information
QuangTung97 committed May 9, 2021
1 parent f107302 commit 4b6b69e
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions named_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,37 @@ func TestFixBounds(t *testing.T) {
expect: `INSERT INTO table_values (a, b) VALUES (:a, :b),(:a, :b)`,
loop: 2,
},
{
name: `multiline indented query`,
query: `INSERT INTO foo (
a,
b,
c,
d
) VALUES (
:name,
:age,
:first,
:last
)`,
expect: `INSERT INTO foo (
a,
b,
c,
d
) VALUES (
:name,
:age,
:first,
:last
),(
:name,
:age,
:first,
:last
)`,
loop: 2,
},
}

for _, tc := range table {
Expand Down

0 comments on commit 4b6b69e

Please sign in to comment.