orientechnologies / orientechnologies/orientdb
Cannot setDescription while creating class schema
Open
@luigidellaquila is already working on this.
Since Jan 18, 2019.
- Dominant language
- Java
- Stars
- 5k
- Forks
- 868
- Avg merge
- 15h 6m
- Merged PRs (30d)
- 18
Description
OrientDB Version: 3.0.13
Java Version: java version "1.8.0_181"
Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)
OS: Ubuntu 18.04.1 LTS
Expected behavior
Trying to set the description I obtain the following exception
com.orientechnologies.orient.core.sql.OCommandSQLParsingException: Error parsing query:
alter class `MyClass` description ?
^
Encountered " <ALTER> "alter "" 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> ...
Steps to reproduce
OClass oClass = orientGraphNoTx.createVertexType("MyClass");
oClass.setDescription("My Description");
This bug was solved in 2.2.x see #7065
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.