-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
date query issue on sqlite #174
Comments
Seems xpath converts date-values to "number" on comparison, so it's NaN.
In xpath2 there is a function "xs:dateTime" for this.
Somewhat clumsy and inefficient but i don't see another way. |
why is that working on postgres and mysql then, but not sqlite? do we rely on a not standards conformant xpath implementation? if you could do a PR to use your xslt that would be great. if you can make sure we have tests that cover this, we can try only activating it for sqlite and see if mysql and postgres really don't need it. |
Can't do it currently. Will do it some time later. Sorry! |
is this still broken? i would assume that the phpcr-api-tests would detect the problem, or not? |
Can confirm this issue with both mysql and sqlite (havn't tried postgres):
Where we have:
0 results. |
via @rmsint
Using dbal together with sqlite gives no results for a query using the date literal. For jackrabbit and dbal mysql the query with a date literal is giving the expected results.
On the cmf-sandbox, this query:
should give 2 results:
The generated sql is:
The difference is that:
EXTRACTVALUE
function for sqlite returns false for the xpath expression of the date, here: https://github.com/jackalope/jackalope-doctrine-dbal/blob/master/src/Jackalope/Transport/DoctrineDBAL/Client.php#L202The text was updated successfully, but these errors were encountered: