orientechnologies/orientdb

Cannot drop property from class

Afler opened this issue · 2 comments

OrientDB Version: docker orientdb:3.2.32-tp3

Java Version: 17

OS: 10

Expected behavior

DROP PROPERTY command worked

Actual behavior

Trying to drop a property from a class:
image
and got the exception:

Error parsing query: DROP PROPERTY kamaz:Resource.testProperty ^ Encountered " <DROP> "DROP "" at line 1, column 1. Was
expecting one of: <SELECT> ... <TRAVERSE> ... <MATCH> ... <INSERT> ... <RETURN> ... <FIND> ... <REBUILD> ... <OPTIMIZE> ...
<GRANT> ... <REVOKE> ... <BEGIN> ... <COMMIT> ... <ROLLBACK> ... <IF> ... <SLEEP> ... <CONSOLE> ... <MOVE> ... <SELECT> ... 
<SELECT> ... <TRAVERSE> ... <MATCH> ... <FIND> ... <INSERT> ... <MOVE> ... DB name="kamaz-db-tp3" Error Code="1"

Same behavior with the Java API:
image

Steps to reproduce

Run docker orientdb:3.2.32-tp3
Add a property to class
Try to drop property with DROP command

Hi,

I think the issue there is the : try to escape the name of the class:

drop property `kamaz:Resource`.testProperty

@tglman Yeah, found it out right now, ty