danny0405 commented on a change in pull request #1299: [CALCITE-3100] cast(? as
DATE) won't work with PreparedStatement
URL: https://github.com/apache/calcite/pull/1299#discussion_r300829791
##########
File path: core/src/test/java/org/apache/calcite/test/JdbcTest.java
##########
@@ -7397,6 +7444,38 @@ public MockDdlDriver() {
public MyTable2[] mytable2 = { new MyTable2() };
}
+ /**
+ * Schema for Date time test
+ */
+ public static class DateTimeSchema {
+ @Override public String toString() {
+ return "DateTimeSchema";
+ }
+
+ public final DateTimeData[] types = {
+ new DateTimeData(Time.valueOf("10:30:00"), new
java.sql.Date(1560000000000L)),
+ new DateTimeData(Time.valueOf("12:00:00"), new
java.sql.Date(1560002400000L)),
+ new DateTimeData()
Review comment:
Can we add more records in this schema, especially some with null value
columns.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services