GitHub user ankit2711 opened a pull request:
https://github.com/apache/metamodel/pull/58
Fix METAMODEL-198.
This fixes the issue but the changes are done in the FormatHelper. Few
more test cases added for Timestamp values.
Trying to apply a fix for Timestamp operand in the DefaultQueryRewriter
does get overriden by the logic written in the FormatHelper which is
called by super.rewriteFilterItems(FilterItem).
The FormatHelper again detects based on the columnType and changes the
values to be Date losing the nanoseconds.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/ankit2711/metamodel master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/metamodel/pull/58.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #58
----
commit ac10d56e18c0a51cc57e6e8da1694aacf6a28f56
Author: ankit2711 <[email protected]>
Date: 2015-10-16T21:06:41Z
Fix METAMODEL-198. This fixes the issue but the changes are done in the
FormatHelper.
Trying to apply a fix for Timestamp operand in the DefaultQueryRewriter
does get overriden by the logic written in the FormatHelper which is
called by super.rewriteFilterItems(FilterItem).
The FormatHelper again detects based on the columnType and changes the
values to be Date losing the nanoseconds.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---