-
Notifications
You must be signed in to change notification settings - Fork 19
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
update queries: strange behaviour on SET EXPR #158
Comments
I don't think so.. looks like a parser issue. Maybe try escaping the quotations? |
hmm .. i get the same issue |
Try: UPDATE [nt:unstructured] AS a INNER JOIN [nt:unstructured] AS t ON ISCHILDNODE(t, a)
SET t.originalLinkCaption = EXPR('row.getNode("a").getPropertyValue("originalLinkCaption")')
WHERE a.[phpcr:class] = 'Liipch\MagazineBundle\Document\Article' ; |
i tried that, it leads to the bug described in #160 |
Hmm, it works for me locally (it parses the query and updates 0 rows). Are you using the latest version? (beta-3) |
oh, actually not. i will try that out and report back.
|
ok, your proposal works. but the thing i reported still gives me the same on beta3 and i don't think i see a typo in there. so maybe a bug in the expression parser? functions got case sensitive, so its actually |
So you can update your content repository sucessfully? Is the bug that it should be case insensative? (in addition to actually locating the exception class) |
so the
|
Hmm, well |
oh, but then the parser is really not reporting that one well. it executed something and the error comes on the auto-save. i will adjust the ticket description then |
i tried to run this query:
but during the autosave i get the exception
as SET EXPR does not exist, this should report an error instead of trying to do strange things. there is probably a problem with the query parser.
The text was updated successfully, but these errors were encountered: