OrientDB搜索结果错误

时间:2016-09-26 11:29:11

标签: orientdb


似乎OrientDB没有为简单搜索返回正确的结果。
我创建了一个包含2个属性itemid

的类节点flag
  • id:输入STRING,index:UNIQUE
  • flag:输入DECIMAL

flag可以由10null值设置。

我使用下面的查询来获取itemflag的所有1

`select from item where flag = 1`

但查询没有返回任何内容。
注意:我已在2.2.72.2.10上进行了测试,似乎只有在提供数据之前在架构中定义flag时才会出现此问题。 是bug吗?

image 更新:添加了示例数据库。 Get it here

2 个答案:

答案 0 :(得分:1)

在2.2.10上测试过,这里没有问题:

create class item extends v
create property item.id STRING
create property item.flag DECIMAL
insert into item(id,flag) values ("id1",1)
select from item where flag = 1

还在工作室的UNIQUE上添加了id索引 - >架构。

输出: Select ID OrientDB

答案 1 :(得分:1)

如果您使用select from item where 1 = flag,则无效。

对于您的查询select from item where flag = 1,您是否可以在github附加数据库时打开问题?