Program: 80068
Project: 80068
Buggy source:
public final java.io.InputStream getUnicodeStream(int column) throws SqlException {
  try {
switch (jdbcTypes_[column - 1]) {
case java.sql.Types.CLOB:
{
        Clob c=getClobColumn_(column,agent_,false);
        String s=c.getSubString(1L,(int)c.length());
        try {
          return new java.io.ByteArrayInputStream(s.getBytes("String_Node_Str"));
        }
 catch (        java.io.UnsupportedEncodingException e) {
          throw new SqlException(agent_.logWriter_,new ClientMessageId(SQLState.UNSUPPORTED_ENCODING),"String_Node_Str","String_Node_Str",e);
        }
      }
case java.sql.Types.CHAR:
{
      try {
        return new java.io.ByteArrayInputStream(getCHAR(column).getBytes("String_Node_Str"));
      }
 catch (      java.io.UnsupportedEncodingException e) {
        throw new SqlException(agent_.logWriter_,new ClientMessageId(SQLState.UNSUPPORTED_ENCODING),"String_Node_Str","String_Node_Str",e);
      }
    }
case java.sql.Types.VARCHAR:
case java.sql.Types.LONGVARCHAR:
  try {
    return new java.io.ByteArrayInputStream(getVARCHAR(column).getBytes("String_Node_Str"));
  }
 catch (  java.io.UnsupportedEncodingException e) {
    throw new SqlException(agent_.logWriter_,new ClientMessageId(SQLState.UNSUPPORTED_ENCODING),"String_Node_Str","String_Node_Str",e);
  }
case java.sql.Types.BINARY:
return new java.io.ByteArrayInputStream(get_CHAR_FOR_BIT_DATA(column));
case java.sql.Types.VARBINARY:
case java.sql.Types.LONGVARBINARY:
return new java.io.ByteArrayInputStream(get_VARCHAR_FOR_BIT_DATA(column));
case java.sql.Types.BLOB:
return getBinaryStream(column);
default :
throw new ColumnTypeConversionException(agent_.logWriter_,"String_Node_Str" + jdbcTypes_[column - 1],"String_Node_Str");
}
}
 catch (SQLException se) {
throw new SqlException(se);
}
}

Fixed version (ground truth):
public final java.io.InputStream getUnicodeStream(int column) throws SqlException {
  try {
switch (jdbcTypes_[column - 1]) {
case java.sql.Types.CLOB:
{
        Clob c=getClobColumn_(column,agent_,false);
        String s=c.getSubString(1L,(int)c.length());
        try {
          return new java.io.ByteArrayInputStream(s.getBytes("String_Node_Str"));
        }
 catch (        java.io.UnsupportedEncodingException e) {
          throw new SqlException(agent_.logWriter_,new ClientMessageId(SQLState.UNSUPPORTED_ENCODING),"String_Node_Str","String_Node_Str",e);
        }
      }
case java.sql.Types.CHAR:
{
      try {
        return new java.io.ByteArrayInputStream(getCHAR(column).getBytes("String_Node_Str"));
      }
 catch (      java.io.UnsupportedEncodingException e) {
        throw new SqlException(agent_.logWriter_,new ClientMessageId(SQLState.UNSUPPORTED_ENCODING),"String_Node_Str","String_Node_Str",e);
      }
    }
case java.sql.Types.VARCHAR:
case java.sql.Types.LONGVARCHAR:
  try {
    return new java.io.ByteArrayInputStream(getVARCHAR(column).getBytes("String_Node_Str"));
  }
 catch (  java.io.UnsupportedEncodingException e) {
    throw new SqlException(agent_.logWriter_,new ClientMessageId(SQLState.UNSUPPORTED_ENCODING),"String_Node_Str","String_Node_Str",e);
  }
case java.sql.Types.BINARY:
return new java.io.ByteArrayInputStream(get_CHAR_FOR_BIT_DATA(column));
case java.sql.Types.VARBINARY:
case java.sql.Types.LONGVARBINARY:
return new java.io.ByteArrayInputStream(get_VARCHAR_FOR_BIT_DATA(column));
case java.sql.Types.BLOB:
return getBinaryStream(column);
default :
throw coercionError("String_Node_Str",column);
}
}
 catch (SQLException se) {
throw new SqlException(se);
}
}