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 CLASS IF EXISTS throws error on nonexistent class #6957

Closed
1 of 5 tasks
maratius1 opened this issue Dec 1, 2016 · 2 comments
Closed
1 of 5 tasks

DROP CLASS IF EXISTS throws error on nonexistent class #6957

maratius1 opened this issue Dec 1, 2016 · 2 comments
Assignees
Labels

Comments

@maratius1
Copy link

OrientDB Version, operating system, or hardware.

OrientDB Server v2.2.13 (build 2.2.x@r90d7caa1e4af3fad86594e592c64dc1202558ab1; 2016-11-15 12:04:05+0000)

Operating System

  • Linux
  • MacOSX
  • Windows
  • Other Unix
  • Other, name?

Expected behavior and actual behavior

Expected: no action.
Actual: error:
Error: java.lang.IllegalArgumentException: Class 'NonExistentClass' not found in database

Steps to reproduce the problem

Try to DROP nonexistent class.

Command:
DROP CLASS NonExistentClass IF EXISTS

See issue #3597.

"CREATE CLASS ExistentClass IF NOT EXISTS" works as expected - does nothing and generates no error.

@luigidellaquila
Copy link
Member

Hi @maratius1

Thank you for reporting, I'll check it asap

Thanks

Luigi

@luigidellaquila luigidellaquila self-assigned this Dec 1, 2016
@luigidellaquila
Copy link
Member

Hi @maratius1

I just checked it in v 2.2.14 from Studio and it seems to work fine. Probably it was fixed in latest release.

I'm closing this, please reopen if you still have a way to reproduce it.

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