[
http://jira.nuxeo.org/browse/NXP-4219?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Florent Guillaume resolved NXP-4219.
------------------------------------
Resolution: Not A Bug
Not a bug, works as designed.
If you do an equality test on a date, you must provide in NXQL the full
precision expected by the database, which includes at least milliseconds
(except for stupid MySQL which has no sub-second resolution). Also you must not
mix timestamps without timezones and timestamps with timezones.
See added unit test:
http://hg.nuxeo.org/nuxeo/nuxeo-core/rev/b73ab3c3038e
> Timestamp queries not working as expected
> -----------------------------------------
>
> Key: NXP-4219
> URL: http://jira.nuxeo.org/browse/NXP-4219
> Project: Nuxeo Enterprise Platform
> Issue Type: Bug
> Affects Versions: 5.2 GA
> Environment: PostgreSql 8.3
> Reporter: Mariana Cedica
> Assignee: Florent Guillaume
> Fix For: 5.3 GA
>
> Attachments: TestTimestampQueries.java
>
>
> As the attached test case is showing the following queries don't return the
> expected result:
> 1) Modify a document, retrieve the modificationDate from the database and
> then search for documents with the same title and this modification time
> (using the format : yyyy-MM-dd HH:mm:ss ) . The document is not found.
> - When searching for documents modified before actual modificationTime + 1
> second the document is found
> 2) Search for documents modified before actual modificationTime + 1 second
> but using the org.nuxeo.ecm.core.query.sql.model to build the query (
> WhereClause).
> When the query is build the modificationTime is formated with the time zone
> and the document is not found.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets