Skip to content

Commit 188ac0a

Browse files
style: license header
Signed-off-by: Andreas Reichel <andreas@manticore-projects.com>
1 parent a6d5cee commit 188ac0a

3 files changed

Lines changed: 28 additions & 0 deletions

File tree

src/test/java/net/sf/jsqlparser/parser/BytecodeSizeTest.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/*-
2+
* #%L
3+
* JSQLParser library
4+
* %%
5+
* Copyright (C) 2004 - 2026 JSQLParser
6+
* %%
7+
* Dual licensed under GNU LGPL 2.1 or Apache License 2.0
8+
* #L%
9+
*/
110
package net.sf.jsqlparser.parser;
211

312
import java.nio.file.*;

src/test/java/net/sf/jsqlparser/parser/BytecodeSizeVerifier.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/*-
2+
* #%L
3+
* JSQLParser library
4+
* %%
5+
* Copyright (C) 2004 - 2026 JSQLParser
6+
* %%
7+
* Dual licensed under GNU LGPL 2.1 or Apache License 2.0
8+
* #L%
9+
*/
110
package net.sf.jsqlparser.parser;
211

312
import java.io.*;

src/test/java/net/sf/jsqlparser/statement/select/SelectTest.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6517,4 +6517,14 @@ void testIssue2332SubStrCTE() throws JSQLParserException {
65176517
" from u ;";
65186518
TestUtils.assertSqlCanBeParsedAndDeparsed(sqlStr, true);
65196519
}
6520+
6521+
@Test
6522+
void testIssue2445FunctionWithBracketParameters() throws JSQLParserException {
6523+
String sqlStr =
6524+
"select sum( (1 + COALESCE(g.inflation_rate,0)) \n" +
6525+
" / (1 + COALESCE(g.depreciation_rate,0))\n"
6526+
+
6527+
" , cast(ex.value_date - f.appraisal_date AS DECIMAL) / 365 )";
6528+
TestUtils.assertSqlCanBeParsedAndDeparsed(sqlStr, true);
6529+
}
65206530
}

0 commit comments

Comments
 (0)