Skip to content

Commit

Permalink
checked issue #482
Browse files Browse the repository at this point in the history
  • Loading branch information
wumpz committed Aug 7, 2017
1 parent 64bc5e0 commit 71692c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/test/java/net/sf/jsqlparser/test/select/SelectTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -2640,4 +2640,8 @@ public void testProblemIssue445() throws JSQLParserException {
public void testProblemIssue485Date() throws JSQLParserException {
assertSqlCanBeParsedAndDeparsed("SELECT * FROM tab WHERE tab.date = :date");
}

public void testGroupByProblemIssue482() throws JSQLParserException {
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");
}
}

0 comments on commit 71692c5

Please sign in to comment.