Skip to content
This repository has been archived by the owner on Aug 12, 2022. It is now read-only.

Commit

Permalink
fixed #8
Browse files Browse the repository at this point in the history
  • Loading branch information
maggiolo00 authored and maggiolo00 committed Jun 26, 2014
1 parent db0d5ef commit 2120579
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public boolean supportsOrderedIterations() {

@Override
public boolean canBeUsedInEqualityOperators() {
return true;
return false;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@ public static boolean checkIndexExistence(final OClass iSchemaClass, final OInde
if (!iSchemaClass.areIndexed(result.fields()))
return false;

if (result.getLastField().isLong()) {
final int fieldCount = result.getLastField().getItemCount();
OClass cls = iSchemaClass.getProperty(result.getLastField().getItemName(0)).getLinkedClass();
if (result.lastField.isLong()) {
final int fieldCount = result.lastField.getItemCount();
OClass cls = iSchemaClass.getProperty(result.lastField.getItemName(0)).getLinkedClass();

for (int i = 1; i < fieldCount; i++) {
if (cls == null || !cls.areIndexed(result.getLastField().getItemName(i))) {
if (cls == null || !cls.areIndexed(result.lastField.getItemName(i))) {
return false;
}

cls = cls.getProperty(result.getLastField().getItemName(i)).getLinkedClass();
cls = cls.getProperty(result.lastField.getItemName(i)).getLinkedClass();
}
}
return true;
Expand Down

0 comments on commit 2120579

Please sign in to comment.