Program: 7539
Project: 7539
Buggy source:
@Test public void executeTest() throws Exception {
  ExploreClient exploreClient=new MockExploreClient(ImmutableMap.of("String_Node_Str",(List<ColumnDesc>)Lists.newArrayList(new ColumnDesc("String_Node_Str","String_Node_Str",1,"String_Node_Str"),new ColumnDesc("String_Node_Str","String_Node_Str",2,"String_Node_Str"))),ImmutableMap.of("String_Node_Str",(List<Result>)Lists.<Result>newArrayList()));
  ExplorePreparedStatement statement=new ExplorePreparedStatement(null,exploreClient,"String_Node_Str");
  statement.setInt(1,100);
  try {
    statement.execute();
    Assert.fail();
  }
 catch (  SQLException e) {
  }
  statement.setString(2,"String_Node_Str");
  Assert.assertEquals("String_Node_Str",statement.updateSql());
  Assert.assertTrue(statement.execute());
  ResultSet rs=statement.getResultSet();
  Assert.assertNotNull(rs);
  Assert.assertFalse(rs.isClosed());
  Assert.assertFalse(rs.next());
  statement=new ExplorePreparedStatement(null,exploreClient,"String_Node_Str");
  Assert.assertEquals("String_Node_Str",statement.updateSql());
  statement=new ExplorePreparedStatement(null,exploreClient,"String_Node_Str");
  statement.setInt(1,100);
  Assert.assertEquals("String_Node_Str",statement.updateSql());
  statement=new ExplorePreparedStatement(null,exploreClient,"String_Node_Str");
  statement.setInt(1,100);
  Assert.assertEquals("String_Node_Str",statement.updateSql());
  statement=new ExplorePreparedStatement(null,exploreClient,"String_Node_Str");
  statement.setInt(1,100);
  Assert.assertEquals("String_Node_Str",statement.updateSql());
  statement=new ExplorePreparedStatement(null,exploreClient,"String_Node_Str");
  statement.setInt(1,100);
  Assert.assertEquals("String_Node_Str",statement.updateSql());
  statement=new ExplorePreparedStatement(null,exploreClient,"String_Node_Str");
  statement.setInt(1,100);
  Assert.assertEquals("String_Node_Str",statement.updateSql());
}

Fixed version (ground truth):
@Test public void executeTest() throws Exception {
  ExploreClient exploreClient=new MockExploreClient(ImmutableMap.of("String_Node_Str",(List<ColumnDesc>)Lists.newArrayList(new ColumnDesc("String_Node_Str","String_Node_Str",1,"String_Node_Str"),new ColumnDesc("String_Node_Str","String_Node_Str",2,"String_Node_Str"))),ImmutableMap.of("String_Node_Str",(List<QueryResult>)Lists.<QueryResult>newArrayList()));
  ExplorePreparedStatement statement=new ExplorePreparedStatement(null,exploreClient,"String_Node_Str");
  statement.setInt(1,100);
  try {
    statement.execute();
    Assert.fail();
  }
 catch (  SQLException e) {
  }
  statement.setString(2,"String_Node_Str");
  Assert.assertEquals("String_Node_Str",statement.updateSql());
  Assert.assertTrue(statement.execute());
  ResultSet rs=statement.getResultSet();
  Assert.assertNotNull(rs);
  Assert.assertFalse(rs.isClosed());
  Assert.assertFalse(rs.next());
  statement=new ExplorePreparedStatement(null,exploreClient,"String_Node_Str");
  Assert.assertEquals("String_Node_Str",statement.updateSql());
  statement=new ExplorePreparedStatement(null,exploreClient,"String_Node_Str");
  statement.setInt(1,100);
  Assert.assertEquals("String_Node_Str",statement.updateSql());
  statement=new ExplorePreparedStatement(null,exploreClient,"String_Node_Str");
  statement.setInt(1,100);
  Assert.assertEquals("String_Node_Str",statement.updateSql());
  statement=new ExplorePreparedStatement(null,exploreClient,"String_Node_Str");
  statement.setInt(1,100);
  Assert.assertEquals("String_Node_Str",statement.updateSql());
  statement=new ExplorePreparedStatement(null,exploreClient,"String_Node_Str");
  statement.setInt(1,100);
  Assert.assertEquals("String_Node_Str",statement.updateSql());
  statement=new ExplorePreparedStatement(null,exploreClient,"String_Node_Str");
  statement.setInt(1,100);
  Assert.assertEquals("String_Node_Str",statement.updateSql());
}