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

OObjectDatabaseTx.browseClass: Returns wrong records with multiple classes per cluster #1682

Closed
dxxr opened this issue Sep 16, 2013 · 0 comments
Assignees
Milestone

Comments

@dxxr
Copy link

dxxr commented Sep 16, 2013

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
----+----+-----------

@ghost ghost assigned MaDaPHaKa Sep 16, 2013
@ghost ghost assigned enisher and lvca Oct 28, 2013
lvca added a commit that referenced this issue Oct 28, 2013
@lvca lvca closed this as completed Oct 28, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants