Skip to content

InvalidQueryException on Windows for correct query #204

@alexander-schranz

Description

@alexander-schranz

In sulu currently the CI is failing because of a query is not working correctly: https://github.com/sulu/sulu/runs/4532843563?check_suite_focus=true

Interesting is that it only fails on the Windows machine with the following error:

PHPCR\Query\InvalidQueryException: Syntax error: Expected ')', found '' in SELECT *
                 FROM [nt:unstructured] as page
                 WHERE (page.[jcr:mixinTypes] = 'sulu:page'
                       OR page.[jcr:mixinTypes] = 'sulu:home')
                       AND isdescendantnode(page, '/cmf/sulu_io')

D:\a\sulu\sulu\vendor\phpcr\phpcr-utils\src\PHPCR\Util\QOM\Sql2Scanner.php:94
D:\a\sulu\sulu\vendor\phpcr\phpcr-utils\src\PHPCR\Util\QOM\Sql2ToQomQueryConverter.php:419
D:\a\sulu\sulu\vendor\phpcr\phpcr-utils\src\PHPCR\Util\QOM\Sql2ToQomQueryConverter.php:361
D:\a\sulu\sulu\vendor\phpcr\phpcr-utils\src\PHPCR\Util\QOM\Sql2ToQomQueryConverter.php:118

There seems also other issues where the query is false.

Machine runs on PHP 7.4.

The query itself looks coorect from my point of view.

@mamazu any idea what could cause this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions