Skip to content

Sql1QueryConverter does not encapsulate property names in square brackets #143

Open
@dantleech

Description

@dantleech

e.g. it produces the following:

SELECT s FROM nt:unstructured WHERE i18n:de-changer = 11

Which is invalid JCR-SQL2 it should be:

SELECT s FROM nt:unstructured WHERE [i18n:de-changer] = 11

This causes problems with Jackrabbit, but not doctrine-dbal which doesn't care.

Note that this is also specifically a problem for PHPCRSH when we perform UPDATEs. Normally queries to Jackrabbit are passed directly - bypassing the phpcr-utils SQL2 generation.

In PHPCRSH however we parse the UPDATE (and implicitly the SELECT) which reveals this issue.

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