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

Long.MIN_VALUE is parsed incorrectly in a query #8365

Closed
ErikShiken opened this issue Jun 29, 2018 · 2 comments
Closed

Long.MIN_VALUE is parsed incorrectly in a query #8365

ErikShiken opened this issue Jun 29, 2018 · 2 comments
Assignees
Labels
Milestone

Comments

@ErikShiken
Copy link

OrientDB Version: 2.2.29

Java Version: 1.8.0_72

OS: Windows 10

Expected behavior

Parse Long.MIN_VALUE correctly for a query

Actual behavior

Parser throws an exception

Steps to reproduce

Use a query that check the value of a property using Long.MIN_VALUE
For example:
SELECT FROM V WHERE hs_3apoint >= -9223372036854775808

It appears the '-' is parsed first and then the number. Since 9223372036854775807 is the max long value, a parsing exception occurs.

@luigidellaquila luigidellaquila self-assigned this Jul 2, 2018
@luigidellaquila
Copy link
Member

Hi @ErikShiken

Thank you very much for reporting, I'm checking it now

Thanks

Luigi

@luigidellaquila luigidellaquila added this to the 2.2.37 milestone Jul 2, 2018
@luigidellaquila
Copy link
Member

hi @ErikShiken

I just pushed a fix to develop branch (3.0.x), it will be released with v 3.0.4

Now I'm backporting it to v 2.2.x

Thanks

Luigi

luigidellaquila added a commit that referenced this issue Jul 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants