You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With multiple classes created in one cluster, browseClass(...) returns wrong records.
It seems to always include the first record of the first class created, even if other classes are browsed. (Select from class seems ok)
Example using the console (assuming the default cluster has ID 3):
create class ClassA cluster 3;
create property ClassA.name String;
create class ClassB cluster 3;
create property ClassB.name string;
insert into ClassA (name) values ('Class A - 1');
insert into ClassA (name) values ('Class A - 2');
into ClassB (name) values ('Class B - 1');
insert into ClassB (name) values ('Class B - 2');
browse class ClassA;
----+----+-----------
OrientDB v 1.5.1
With multiple classes created in one cluster, browseClass(...) returns wrong records.
It seems to always include the first record of the first class created, even if other classes are browsed. (Select from class seems ok)
Example using the console (assuming the default cluster has ID 3):
create class ClassA cluster 3;
create property ClassA.name String;
create class ClassB cluster 3;
create property ClassB.name string;
insert into ClassA (name) values ('Class A - 1');
insert into ClassA (name) values ('Class A - 2');
into ClassB (name) values ('Class B - 1');
insert into ClassB (name) values ('Class B - 2');
browse class ClassA;
----+----+-----------
|@Rid|name
----+----+-----------
0 |#3:0|Class A - 1
1 |#3:1|Class A - 2
----+----+-----------
browse class ClassB;
----+----+-----------
|@Rid|name
----+----+-----------
0 |#3:0|Class A - 1 <=== ?????
1 |#3:2|Class B - 1
2 |#3:3|Class B - 2
----+----+-----------
select from ClassB;
----+----+-----------
|@Rid|name
----+----+-----------
0 |#3:2|Class B - 1
1 |#3:3|Class B - 2
----+----+-----------
delete from #3:0;
browse class ClassB;
----+----+-----------
|@Rid|name
----+----+-----------
0 |#3:1|Class A - 2 <=== ?????
1 |#3:2|Class B - 1
2 |#3:3|Class B - 2
----+----+-----------
The text was updated successfully, but these errors were encountered: