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

Delete command with RETURN COUNT statement throws Error parsing query #7598

Closed
MatthewPolak opened this issue Aug 1, 2017 · 3 comments
Closed
Assignees
Labels
Milestone

Comments

@MatthewPolak
Copy link

OrientDB Version: v2.2.24 (using Docker image orientdb)

Java Version: openjdk version "1.8.0_131"

OS: Alpine Linux v3.6.2

Expected behavior

delete from Contact return COUNT where name = 'Bob' should return number of deleted records (command without return COUNT works)

Actual behavior

Returns error Error parsing query: delete from Contact return COUNT where name = 'Bob' ^ Encountered " <COUNT> "COUNT "" at line 1, column 28. Was expecting: <BEFORE> ... DB name="amc"

Steps to reproduce

delete from Contact return COUNT where name = 'Bob'

Not sure if documantation is outdated or it is a bug

@luigidellaquila luigidellaquila self-assigned this Aug 1, 2017
@lvca lvca added the bug label Aug 5, 2017
@lvca
Copy link
Member

lvca commented Aug 5, 2017

@luigidellaquila it looks like you forgot to add COUNT in the new parser.

@lvca lvca added this to the 2.2.x (next hotfix) milestone Aug 5, 2017
@luigidellaquila
Copy link
Member

Yep, it seems so, I'll fix it asap

Thanks

Luigi

luigidellaquila added a commit that referenced this issue Aug 7, 2017
@luigidellaquila
Copy link
Member

Fixed on 2.2.x branch, the fix will be released with 2.2.26

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

3 participants