Wrong behavior of LIKE in 3.1.6 and 3.2.3

Symptoms

Wrong behavior of LIKE and == Query 1:

result = select s from Test:s;
print result;

In both 3.1.6 and 3.2.3:

[
  {
    "result": [
      {
        "attributes": {
          "attribute1": "\\abcd",
          "attribute2": 77,
          "attribute3": 0.22113,
          "attribute4": false,
          "vertex_altered_at": "2022-08-25 13:27:31",
          "vertex_created_at": "2022-08-25 13:27:31"
        },
        "v_id": "\\abcd",
        "v_type": "Test"
      }
    ]
  }
]

Query 2:

  result = select s from Test:s where s.attribute1 like "\\abcd";
  print result;

3.1.6: OK, vertex returned.

3.2.3: NOT OK, empty results.

Query 3:

  result = select s from Test:s where s.attribute1 like "\\\\abcd";
  print result;

3.1.6: OK, empty results.

3.2.3: NOT OK, vertex returned.

Query 4:

  result = select s from Test:s where s.attribute1 == "\\abcd";
  print result;

3.1.6: NOT OK, empty results.

3.2.3: OK, vertex returned.

Error Messages

N/A

Cause

This is a known issue.

Resolution

Upgrade to 3.6.2 or above 3.6.2 and the latest version