Skip to content

Commit 538aa36

Browse files
fix(parser): keep parenthesized multi-param lambda as first function arg
Signed-off-by: lisbon-craigb-13142 <lisbon-craigb-13142@users.noreply.github.com>
1 parent 7108b35 commit 538aa36

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/test/java/net/sf/jsqlparser/expression/LambdaExpressionTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,10 @@ void testLambdaMultiParameterIssue2032() throws JSQLParserException {
4545
TestUtils.assertSqlCanBeParsedAndDeparsed(sqlStr, true);
4646
}
4747

48+
@Test
49+
void testLambdaFirstArgumentIssue2195() throws JSQLParserException {
50+
String sqlStr = "select array_map((x,y,z) -> x + y, [1], [2], [4]) FROM table_name";
51+
TestUtils.assertSqlCanBeParsedAndDeparsed(sqlStr, true);
52+
}
53+
4854
}

0 commit comments

Comments
 (0)