OrientDB 3 sql脚本错误

时间:2018-05-25 14:42:50

标签: orientdb

我正在从ODB 2.2.29迁移到3.0.1,我发现了一个我无法理解的错误。 我有一个名为'EdgeAttrib'的课程。该类在DB中尚不存在。 现在考虑这段代码:

let exist = select from (select expand(classes) from metadata:schema) where name = 'EdgeAttrib';
if ($exist.size()>0) {
     delete vertex EdgeAttrib;
     drop class EdgeAttrib;
}

在2.2.29中运行良好,在3.0.1中运行失败。更重要的是,其他类的相同代码工作正常。 当我运行它时,它会抛出:

 com.orientechnologies.orient.core.exception.OCommandExecutionException: Class not found: EdgeAttrib DB name="Test"

当尝试执行“删除顶点”行时发生这种情况,但该类不存在,因此它永远不应该运行该行​​。 我在ODB Studio中运行此代码。

1 个答案:

答案 0 :(得分:0)

此修补程序已在3.0.3版中添加。