private void confirmIndexScanUsage(Statement stmt, int some_constant)
throws SQLException {
RuntimeStatisticsParser rtsp;
boolean constraintUsed;
rtsp = SQLUtilities.getRuntimeStatisticsParser(stmt);
constraintUsed = rtsp.usedConstraintForIndexScan("TABLE1");
if (!constraintUsed){
assertTrue("Should have done index scan but did table scan on " +
"TABLE1 for t0.Table3_ID = "+some_constant, constraintUsed);
}
constraintUsed = rtsp.usedConstraintForIndexScan("TABLE2");