Category: | Bug report |
Priority: | Normal |
Status: | Feedback Requested |
Project: | Severity: | Major |
Resolution: | Open |
|
Component: | Reproducibility: | Always |
Assigned to: |
Any filter that uses date type field causes Oracle to produce an error ORA-01861: literal does not match format string.
v6.1.0
6 Comments:
I can reproduce it too and it's really annoying: date filters just not working at least with oracle jdbc Data Sources. Is there any changes or plans to fix this past 2 month from original bug report?
When is this getting fixed? Having a lot of trouble as I am working with date filters!<strong><<<<<< This comment was blocked and unpublished because <a href="http://www.projecthoneypot.org/">Project Honeypot</a> indicates it came from a suspicious IP address.</strong>
It has been indicated to me that this will be fixed in the next release.
Here is a work around I received from support.
There is a workaround and to make this change, edit WEB-INF/applicationContext-semanticLayer.xml and look for the property "excludeFunctionTemplates" in the bean "defaultSQLGenerator".
Comment out the two <value> elements as shown:
<bean id="defaultSQLGenerator"
class="com.jaspersoft.commons.semantic.dsimpl.SQLGenerator" scope="prototype">
<property name="excludeFunctionTemplates">
<list>
<!-- <value>Integer</value> -->
<!-- <value>Timestamp</value> -->
</list>
</property>
<property name="functionTemplates">
<map>
...
In the workaround above, you should uncomment the Integer value:
<value>Integer</value>
Otherwise, you may get this exception if you have a numeric field set to "Dimension" in a domain.
java.lang.RuntimeException: groovy evaluation failed on string args[0].value and expression Integer(24)
Also try this setting in the driver URL.
FetchTSWTZasTimestamp=true