Skip to content

Commit

Permalink
fixed bug involved with improper querying of labels with non-standard…
Browse files Browse the repository at this point in the history
… characters in them
  • Loading branch information
moxious committed Nov 10, 2014
1 parent 712c138 commit a97ebb9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ public NeoProfile run(NeoProfiler parent) {
} // End try

List<Object>outbound = runQueryMultipleResult(parent,
"match (n:" + label + ")-[r]->m where n <> m return distinct(type(r)) as outbound", "outbound");
"match (n:`" + label + "`)-[r]->m where n <> m return distinct(type(r)) as outbound", "outbound");

if(outbound.isEmpty()) outbound.add(NeoProfile.OB_VALUE_NA);
p.addObservation(LabelProfile.OB_OUTBOUND_RELATIONSHIP_TYPES, outbound);

List<Object>inbound = runQueryMultipleResult(parent,
"match (n:" + label + ")<-[r]-m where n <> m return distinct(type(r)) as outbound", "outbound");
"match (n:`" + label + "`)<-[r]-m where n <> m return distinct(type(r)) as outbound", "outbound");

if(inbound.isEmpty()) inbound.add(NeoProfile.OB_VALUE_NA);
p.addObservation(LabelProfile.OB_INBOUND_RELATIONSHIP_TYPES, inbound);
Expand Down

0 comments on commit a97ebb9

Please sign in to comment.