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

DROP INDEX succeeds even with invalid index name #8007

Closed
obi1kenobi opened this issue Jan 17, 2018 · 1 comment
Closed

DROP INDEX succeeds even with invalid index name #8007

obi1kenobi opened this issue Jan 17, 2018 · 1 comment
Assignees
Labels
Milestone

Comments

@obi1kenobi
Copy link
Contributor

OrientDB Version: 2.2.30

Java Version: OpenJDK 8

OS: Linux

Expected behavior

The following command should either produce an error, or return a value of 0 since no index was dropped:

DROP INDEX DefinitelyDoesNotExist

Actual behavior

The above command returns value: 1, the same as if an index was actually dropped.

Steps to reproduce

Just run the above command.

@luigidellaquila
Copy link
Member

Hi @obi1kenobi

I just pushed a fix, now the DROP INDEX statement returns zero if no indexes were dropped.

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