Program: 80127
Project: 80127
Buggy source:
public void testSqlProcedures() throws SQLException {
  Connection conn=getConnection();
  Statement s=createStatement();
  s.execute("String_Node_Str");
  s.execute("String_Node_Str");
  s.execute("String_Node_Str");
  String[] sysaliasDefinition={"String_Node_Str"};
  String[] dbMetadataDefinition={"String_Node_Str"};
  String[] columnDefinition={"String_Node_Str"};
  checkMatchingProcedures(conn,"String_Node_Str",sysaliasDefinition,dbMetadataDefinition,columnDefinition);
  sysaliasDefinition=new String[]{"String_Node_Str"};
  dbMetadataDefinition=new String[]{"String_Node_Str"};
  columnDefinition=new String[]{"String_Node_Str","String_Node_Str"};
  checkMatchingProcedures(conn,"String_Node_Str",sysaliasDefinition,dbMetadataDefinition,columnDefinition);
  assertCallError("String_Node_Str",conn,"String_Node_Str");
  CallableStatement ir1=conn.prepareCall("String_Node_Str");
  ir1.setInt(1,1);
  ir1.execute();
  ir1.setInt(1,2);
  ir1.execute();
  try {
    ir1.execute();
    fail("String_Node_Str");
  }
 catch (  SQLException sqle) {
    assertSQLState("String_Node_Str",sqle);
  }
  ir1.setString(1,"String_Node_Str");
  ir1.execute();
  ir1.close();
  ir1=conn.prepareCall("String_Node_Str");
  ir1.setInt(1,7);
  ir1.execute();
  CallableStatement ir2=conn.prepareCall("String_Node_Str");
  ir2.setInt(1,4);
  ir2.setInt(2,4);
  ir2.execute();
  ir2.setInt(1,5);
  ir2.setString(2,"String_Node_Str");
  ir2.execute();
  ir2.setInt(1,6);
  ir2.setString(2,"String_Node_Str");
  ir2.execute();
  ir1.close();
  ir2.close();
  if (!conn.getAutoCommit())   conn.commit();
  String[][] t1Results={{"String_Node_Str","String_Node_Str"},{"String_Node_Str","String_Node_Str"},{"String_Node_Str","String_Node_Str"},{"String_Node_Str","String_Node_Str"},{"String_Node_Str","String_Node_Str"},{"String_Node_Str","String_Node_Str"},{"String_Node_Str","String_Node_Str"}};
  ResultSet rs=s.executeQuery("String_Node_Str");
  JDBC.assertFullResultSet(rs,t1Results);
  if (!conn.getAutoCommit())   conn.commit();
  assertCallError("String_Node_Str",conn,"String_Node_Str");
  assertCallError("String_Node_Str",conn,"String_Node_Str");
  assertCallError("String_Node_Str",conn,"String_Node_Str");
  s.execute("String_Node_Str");
  s.execute("String_Node_Str");
  s.close();
}

Fixed version (ground truth):
public void testSqlProcedures() throws SQLException {
  Connection conn=getConnection();
  Statement s=createStatement();
  s.execute("String_Node_Str");
  s.execute("String_Node_Str");
  s.execute("String_Node_Str");
  String[] sysaliasDefinition={"String_Node_Str"};
  String[] dbMetadataDefinition={"String_Node_Str"};
  String[] columnDefinition={"String_Node_Str"};
  checkMatchingProcedures(conn,"String_Node_Str",sysaliasDefinition,dbMetadataDefinition,columnDefinition);
  sysaliasDefinition=new String[]{"String_Node_Str"};
  dbMetadataDefinition=new String[]{"String_Node_Str"};
  columnDefinition=new String[]{"String_Node_Str","String_Node_Str"};
  checkMatchingProcedures(conn,"String_Node_Str",sysaliasDefinition,dbMetadataDefinition,columnDefinition);
  assertCallError("String_Node_Str","String_Node_Str");
  CallableStatement ir1=prepareCall("String_Node_Str");
  ir1.setInt(1,1);
  ir1.execute();
  ir1.setInt(1,2);
  ir1.execute();
  try {
    ir1.execute();
    fail("String_Node_Str");
  }
 catch (  SQLException sqle) {
    assertSQLState("String_Node_Str",sqle);
  }
  ir1.setString(1,"String_Node_Str");
  ir1.execute();
  ir1.close();
  ir1=conn.prepareCall("String_Node_Str");
  ir1.setInt(1,7);
  ir1.execute();
  CallableStatement ir2=conn.prepareCall("String_Node_Str");
  ir2.setInt(1,4);
  ir2.setInt(2,4);
  ir2.execute();
  ir2.setInt(1,5);
  ir2.setString(2,"String_Node_Str");
  ir2.execute();
  ir2.setInt(1,6);
  ir2.setString(2,"String_Node_Str");
  ir2.execute();
  ir1.close();
  ir2.close();
  if (!conn.getAutoCommit())   conn.commit();
  String[][] t1Results={{"String_Node_Str","String_Node_Str"},{"String_Node_Str","String_Node_Str"},{"String_Node_Str","String_Node_Str"},{"String_Node_Str","String_Node_Str"},{"String_Node_Str","String_Node_Str"},{"String_Node_Str","String_Node_Str"},{"String_Node_Str","String_Node_Str"}};
  ResultSet rs=s.executeQuery("String_Node_Str");
  JDBC.assertFullResultSet(rs,t1Results);
  if (!conn.getAutoCommit())   conn.commit();
  assertCallError("String_Node_Str","String_Node_Str");
  assertCallError("String_Node_Str","String_Node_Str");
  assertCallError("String_Node_Str","String_Node_Str");
  s.execute("String_Node_Str");
  s.execute("String_Node_Str");
  s.close();
}