orientdb icon indicating copy to clipboard operation
orientdb copied to clipboard

ParsingException when using more than one LET-Statement via binary protocol

Open ArcEglos opened this issue 11 years ago • 3 comments

I have the following query:

SELECT score.@rid, $readBy
FROM thread
LET
    $score = first(out("isFor").out("isA")), 
    $readBy = (SELECT out as personRid from isMemberOf WHERE in = $parent.$current.@rid AND read=true)

This works perfectly fine in the studio but when i send it via the binary protocol (in my case using oriento) although it reches the server correctly throws a OCommandSQLParsingException mit Invalid keyword '@rid'

The problem doesn't occur if I remove either of the LET-statements

ArcEglos avatar Jun 10 '15 13:06 ArcEglos

Update: I've tried to further track down this problem. And it becomes even harder to understand. I had in my code queries that had more than one variable defined via a LET-statement. These queries worked and still work. If, however, i add another argument to these LET-statements the queries suddenly throw the same error-message described in the initial post.

ArcEglos avatar Jun 11 '15 12:06 ArcEglos

I think this is in oriento with \n. Could you please write your query in one line with oriento?

lvca avatar Jun 12 '15 11:06 lvca

The issue has been closed because no response has been received after a while. In case the issue is still valid, please reopen it or write a comment that explains why it's still valid and a way to reproduce it. Thank you.

lvca avatar Sep 22 '15 00:09 lvca