Skip to content

Commit

Permalink
fix "MATCH (n) RETURN count(n)" with 0 (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
lipanpan03 authored Apr 7, 2024
1 parent 377026e commit c510669
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,11 @@ public static void haClientTest() throws Exception {


String res1 = client.callCypher("MATCH (n) RETURN count(n)", "default", 10);
JSONArray jsonArray = JSONObject.parseArray(res1);
assert (jsonArray.size()==0);
JSONArray jsonArray = JSONArray.parseArray(res1);
assert (jsonArray.size() == 1);
JSONObject jsonObject = jsonArray.getJSONObject(0);
assert (jsonObject.containsKey("COUNT(n)"));
assert (jsonObject.getIntValue("COUNT(n)") == 0);


importSchemaFromContent(client);
Expand Down

0 comments on commit c510669

Please sign in to comment.