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

IN operator not working on Short type fields #7578

Closed
mehdizarepour opened this issue Jul 21, 2017 · 3 comments
Closed

IN operator not working on Short type fields #7578

mehdizarepour opened this issue Jul 21, 2017 · 3 comments
Assignees
Labels
Milestone

Comments

@mehdizarepour
Copy link

mehdizarepour commented Jul 21, 2017

OrientDB Version: 2.2.24

Java Version: 1.8

OS: Linux, MacOS

I want to use IN operator to filter records.

Steps to reproduce

/* schema */
create class User extends V;
create property User.state Short;

/* data*/
create vertex User set state = 1;
create vertex User set state = 1;
create vertex User set state = 2;

queries:

select from User where state in [1]

select from User where state in 1

Expected/Actual behavior

These queries should return two records, but instead, it returns nothing.
It should be noted that when I use Integer instead of Short, the queries are work as expected.

Thanks

@luigidellaquila
Copy link
Member

Hi @mehdizarepour

Thank you for reporting, I'll check it asap

Thanks

Luigi

@luigidellaquila luigidellaquila self-assigned this Jul 24, 2017
@mehdizarepour
Copy link
Author

Hi @luigidellaquila

The CONTAINS operator has the same problem.

@luigidellaquila
Copy link
Member

Hi @mehdizarepour

I just pushed a fix on 2.2.x, the fix will be released with 2.2.25

Thanks

Luigi

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