我试图运行简单的脚本,但不知何故它不起作用。不确定这是否包含最新快照或其他内容。
这是脚本。
script SQL
CREATE CLASS Person extends V;
CREATE VERTEX Person set name="Luca";
LET $a = (MATCH {class:Person, as:s} RETURN s);
select expand($a.s);
end
这是输出,我不明白它为什么会失败。另一件事是错误是三次而不是一次,所以这里缺少一些东西。我正在使用orientdb 3.0的最新快照
orientdb {db=demo}> script SQL
[Started multi-line command. Type just 'end' to finish and execute]
Error: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
CREATE CLASS Person extends V;
+----+------------+---------+
|# |operation |className|
+----+------------+---------+
|0 |create class|Person |
+----+------------+---------+
Server side script executed in 0.070000 sec(s). Returned 1 recordsCREATE
VERTEX Person set name="Luca";
LET $a = (MATCH {class:Person, as:s} RETURN s);
select expand($a.s);
end
Error:
com.orientechnologies.orient.core.exception.OCommandExecutionException: Class Person already exists
DB name="demo"
DB name="demo"
Error: com.orientechnologies.orient.core.exception.OCommandExecutionException: Class Person already exists
DB name="demo"
DB name="demo"
Error: com.orientechnologies.orient.core.exception.OCommandExecutionException: Class Person already exists
DB name="demo"
DB name="demo"
Error: com.orientechnologies.orient.core.exception.OCommandExecutionException: Class Person already exists
DB name="demo"
DB name="demo"