Skip to content

Commit 71692c5

Browse files
committed
checked issue #482
1 parent 64bc5e0 commit 71692c5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2640,4 +2640,8 @@ public void testProblemIssue445() throws JSQLParserException {
26402640
public void testProblemIssue485Date() throws JSQLParserException {
26412641
assertSqlCanBeParsedAndDeparsed("SELECT * FROM tab WHERE tab.date = :date");
26422642
}
2643+
2644+
public void testGroupByProblemIssue482() throws JSQLParserException {
2645+
assertSqlCanBeParsedAndDeparsed("SELECT SUM(orderTotalValue) AS value, MONTH(invoiceDate) AS month, YEAR(invoiceDate) AS year FROM invoice.Invoices WHERE projectID = 1 GROUP BY MONTH(invoiceDate), YEAR(invoiceDate) ORDER BY YEAR(invoiceDate) DESC, MONTH(invoiceDate) DESC");
2646+
}
26432647
}

0 commit comments

Comments
 (0)