Skip to content
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

SQL Parser error #4486

Closed
nadestin opened this issue Jun 30, 2015 · 2 comments
Closed

SQL Parser error #4486

nadestin opened this issue Jun 30, 2015 · 2 comments
Assignees
Milestone

Comments

@nadestin
Copy link

I believe that I hit a bug in the SQL parser. Here is how to reproduce it:

create class ParserProblem
create property ParserProblem.LinkFrom string
create property ParserProblem.LinkTo string
Now:
select from ParserProblem
0 item(s) found. Query executed in 0.0 sec(s). (OK)
select LinkTo from ParserProblem
0 item(s) found. Query executed in 0.0 sec(s). (OK)
select LinkFrom from ParserProblem
Error: com.orientechnologies.orient.core.exception.OQueryParsingException: Error on parsing query at position #5: Error on parsing query
Query: from ParserProblem
----------^

Error: com.orientechnologies.orient.core.exception.OCommandExecutionException: Class 'FROM' was not found in current database
Oops!

I am running Community edition Version 2.0.11.
It seems that parser splits property name 'LinkFrom' into Link and From and then compains about wrong syntax. Interesting that statement:

select LinkFrom, LinkTo from ParserProblem
works fine, but statement:
select LinkTo, LinkFrom from ParserProblem
fails.

@lvca lvca added this to the 2.2 milestone Jun 30, 2015
@luigidellaquila luigidellaquila modified the milestones: 2.1 Enterprise GA, 2.2, 2.1 GA Jun 30, 2015
@luigidellaquila
Copy link
Member

fixing it right now

luigidellaquila added a commit that referenced this issue Jun 30, 2015
luigidellaquila added a commit that referenced this issue Jun 30, 2015
@luigidellaquila
Copy link
Member

fixed in develop and 2.0.x

@lvca lvca modified the milestones: 2.1 GA, 2.1-rc5 Jul 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants