phpcr / phpcr-utils

A set of helper classes and command line commands you want to use with phpcr, but that are not part of the API itself
phpcr.github.io
Other
72 stars 30 forks source link

bug with sql2 samenode query when path contains spaces #87

Closed dbu closed 2 years ago

dbu commented 11 years ago

If there is a path in ISSAMENODE and other such queries, SQL2 parsing fails because the tokenizer splits on the spaces and the parser does not expect that. see also the code in parseLiteral for how strings are handled correctly.

SELECT * FROM [nt:file] AS file WHERE ISSAMENODE(file, ["/home node"])

see also https://github.com/phpcr/phpcr-api-tests/issues/116

dbu commented 2 years ago

fixed in #199 \o/