Skip to content

Commit b847e85

Browse files
committed
1 parent aaa8c7a commit b847e85

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2505,6 +2505,11 @@ public void testFunctionIssue284() throws JSQLParserException {
25052505
public void testFunctionDateTimeValues() throws JSQLParserException {
25062506
assertSqlCanBeParsedAndDeparsed("SELECT * FROM tab1 WHERE a > TIMESTAMP '2004-04-30 04:05:34.56'");
25072507
}
2508+
2509+
public void testPR73() throws JSQLParserException {
2510+
assertSqlCanBeParsedAndDeparsed("SELECT date_part('day', TIMESTAMP '2001-02-16 20:38:40')");
2511+
assertSqlCanBeParsedAndDeparsed("SELECT EXTRACT(year FROM DATE '2001-02-16')");
2512+
}
25082513

25092514
public void testUniqueInsteadOfDistinctIssue299() throws JSQLParserException {
25102515
assertSqlCanBeParsedAndDeparsed("SELECT UNIQUE trunc(timez(ludate)+ 8/24) bus_dt, j.object j_name , timez(j.starttime) START_TIME , timez(j.endtime) END_TIME FROM TEST_1 j", true);

0 commit comments

Comments
 (0)