assertEquals(resultA, resultB);
cr = client.callProcedure("@AdHoc", "select count(*) from P1 where SUBSTRING(DESC FROM 1 for 2) = 'X1' and ABS(ID+2) > 7 and ABS(ID+2) < 9");
assertEquals(ClientResponse.SUCCESS, cr.getStatus());
r = cr.getResults()[0];
resultB = r.asScalarLong();
assertEquals(resultA, resultB);
// Do some updates intended to be non-corrupting and inconsequential to the test query results.
cr = client.callProcedure("@AdHoc", "delete from P1 where ABS(ID+3) <> 7");
assertEquals(ClientResponse.SUCCESS, cr.getStatus());