File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -405,11 +405,11 @@ public static function getQueries(\PHPCR\Query\QOM\QueryObjectModelFactoryInterf
405
405
// SELECT * FROM nt:unstructured WHERE sel.prop > '2013-04-15'
406
406
$ queries ['6.7.27.1.PropertyValue ' ] =
407
407
$ factory ->createQuery (
408
- $ factory ->selector ('nt:unstructured ' ),
408
+ $ factory ->selector ('sel ' , ' nt:unstructured ' ),
409
409
$ factory ->comparison (
410
- $ factory ->propertyValue ('prop ' , 'sel ' ),
410
+ $ factory ->propertyValue ('sel ' , 'prop ' ),
411
411
Constants::JCR_OPERATOR_GREATER_THAN ,
412
- $ factory ->literal (new \DateTime ('2013-04-15 ' ))),
412
+ $ factory ->literal (new \DateTime ('2013-04-15 +02:00 ' ))),
413
413
array (),
414
414
array ());
415
415
Original file line number Diff line number Diff line change @@ -144,9 +144,10 @@ public static function getQueries()
144
144
);
145
145
146
146
/**
147
- * 6.7.27. ProperyValue
147
+ * 6.7.27. PropertyValue
148
148
*/
149
149
$ queries ['6.7.27.PropertyValue ' ] = 'SELECT * FROM [nt:file] AS file WHERE file.prop LIKE \'literal \'' ;
150
+ $ queries ['6.7.27.1.PropertyValue ' ] = 'SELECT * FROM [nt:unstructured] AS sel WHERE sel.prop > CAST( \'2013-04-15T00:00:00.000+02:00 \' AS DATE) ' ;
150
151
151
152
/**
152
153
* 6.7.28. Length
You can’t perform that action at this time.
0 commit comments