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

command "create class w extends V" gives error: Super-class V not exists #1742

Closed
atanaschristov opened this issue Oct 16, 2013 · 2 comments
Closed
Assignees

Comments

@atanaschristov
Copy link

version: orientdb-graphed-1.5.1

server started with server.sh
used console.sh to connect to the server

On clean install when I try to create class, which extends V or E, the server gives error. See the log bellow.

The interesting part of the bug is that after I create a regular class and try to create a vertex in it, of course an error appear, but after that I am able to create classes, which extends V and E

Bellow are the commands to reproduce the bug

Commads given on clean install:

orientdb> create database remote:localhost/test admin admin local
.....................
orientdb> create class w extends V

Error: com.orientechnologies.orient.core.sql.OCommandSQLParsingException: Error on parsing command at position #0: Error on parsing command at position #22: Super-class V not exists
Command: create class w extends V
------------------------------^
orientdb> create class wo 

Class created successfully. Total classes in database now: 9

orientdb> create vertex wo set name="test"

Error: com.orientechnologies.orient.core.exception.OCommandExecutionException: Error on execution of command: sql.create vertex wo set name="test"
Error: java.lang.IllegalArgumentException: Class 'wo' is not an instance of V
orientdb> create class w extends V        

Class created successfully. Total classes in database now: 12

orientdb>
@lvca
Copy link
Member

lvca commented Oct 16, 2013

create the database as "graph":

create database remote:localhost/test admin admin local graph

@lvca lvca closed this as completed Oct 16, 2013
@ghost ghost assigned lvca Oct 16, 2013
@atanaschristov
Copy link
Author

It works. Thanks

@lvca lvca modified the milestone: 1.6 Aug 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants