Program: 143852
Project: 143852
Buggy source:
/** 
 * Disables not-null constraints on the given table. <p/> For primary keys, row-guid, identity and computed columns not-null constrains cannot be disabled in MS-Sql.
 * @param schemaName the schema name, not null
 * @param tableName  The table, not null
 */
protected void disableNotNullConstraints(String schemaName,String tableName){
  SQLHandler sqlHandler=getSQLHandler();
  Set<String> primaryKeyColumnNames=sqlHandler.getItemsAsStringSet("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str" + tableName + "String_Node_Str"+ schemaName+ "String_Node_Str",getDataSource());
  Connection connection=null;
  Statement statement=null;
  ResultSet resultSet=null;
  try {
    connection=getDataSource().getConnection();
    statement=connection.createStatement();
    resultSet=statement.executeQuery("String_Node_Str" + "String_Node_Str" + "String_Node_Str" + tableName + "String_Node_Str"+ schemaName+ "String_Node_Str");
    while (resultSet.next()) {
      String columnName=resultSet.getString("String_Node_Str");
      if (primaryKeyColumnNames.contains(columnName)) {
        continue;
      }
      String dataType=resultSet.getString("String_Node_Str");
      if ("String_Node_Str".equals(dataType)) {
        continue;
      }
      if ("String_Node_Str".equals(dataType) || "String_Node_Str".equals(dataType)) {
        String precision=resultSet.getString("String_Node_Str");
        String scale=resultSet.getString("String_Node_Str");
        dataType+="String_Node_Str" + precision + "String_Node_Str"+ scale+ "String_Node_Str";
      }
 else       if (dataType.contains("String_Node_Str")) {
        String maxLength=resultSet.getString("String_Node_Str");
        if (dataType.equals("String_Node_Str") || dataType.equals("String_Node_Str")) {
          maxLength=String.valueOf(Integer.parseInt(maxLength) / 2);
        }
        dataType+="String_Node_Str" + maxLength + "String_Node_Str";
      }
      sqlHandler.execute("String_Node_Str" + qualified(schemaName,tableName) + "String_Node_Str"+ quoted(columnName)+ "String_Node_Str"+ dataType+ "String_Node_Str",getDataSource());
    }
  }
 catch (  Exception e) {
    throw new DatabaseException("String_Node_Str" + schemaName + "String_Node_Str"+ tableName,e);
  }
 finally {
    closeQuietly(connection,statement,resultSet);
  }
}

Fixed version (ground truth):
/** 
 * Disables not-null constraints on the given table. <p/> For primary keys, row-guid, identity and computed columns not-null constrains cannot be disabled in MS-Sql.
 * @param schemaName the schema name, not null
 * @param tableName  The table, not null
 */
protected void disableNotNullConstraints(String schemaName,String tableName){
  SQLHandler sqlHandler=getSQLHandler();
  Set<String> primaryKeyColumnNames=sqlHandler.getItemsAsStringSet("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str" + tableName + "String_Node_Str"+ schemaName+ "String_Node_Str",getDataSource());
  Connection connection=null;
  Statement statement=null;
  ResultSet resultSet=null;
  try {
    connection=getDataSource().getConnection();
    statement=connection.createStatement();
    resultSet=statement.executeQuery("String_Node_Str" + "String_Node_Str" + "String_Node_Str" + tableName + "String_Node_Str"+ schemaName+ "String_Node_Str");
    while (resultSet.next()) {
      String columnName=resultSet.getString("String_Node_Str");
      if (primaryKeyColumnNames.contains(columnName)) {
        continue;
      }
      String dataType=resultSet.getString("String_Node_Str");
      if ("String_Node_Str".equals(dataType)) {
        continue;
      }
      if ("String_Node_Str".equals(dataType) || "String_Node_Str".equals(dataType)) {
        String precision=resultSet.getString("String_Node_Str");
        String scale=resultSet.getString("String_Node_Str");
        dataType+="String_Node_Str" + precision + "String_Node_Str"+ scale+ "String_Node_Str";
      }
 else       if (dataType.contains("String_Node_Str")) {
        String maxLength=resultSet.getString("String_Node_Str");
        if (dataType.equals("String_Node_Str") || dataType.equals("String_Node_Str")) {
          maxLength=String.valueOf(Integer.parseInt(maxLength) / 2);
        }
        dataType+="String_Node_Str" + ("String_Node_Str".equals(maxLength) ? "String_Node_Str" : String.valueOf(maxLength)) + "String_Node_Str";
      }
      sqlHandler.execute("String_Node_Str" + qualified(schemaName,tableName) + "String_Node_Str"+ quoted(columnName)+ "String_Node_Str"+ dataType+ "String_Node_Str",getDataSource());
    }
  }
 catch (  Exception e) {
    throw new DatabaseException("String_Node_Str" + schemaName + "String_Node_Str"+ tableName,e);
  }
 finally {
    closeQuietly(connection,statement,resultSet);
  }
}