Page 1 of 1

Clob support

Posted: Fri Oct 12, 2012 1:22 am
by Chipo
Hi,
currently I experienced problem with reading of CLOB from database.
The only way to fix it was to add the following lines to ReturnXmlOrSqlData.getData

Code: Select all

case 2005:
  try {
    BufferedReader br = new BufferedReader(rs.getClob(i).getCharacterStream());
    StringBuffer buffer = new StringBuffer();
    String line;
    while (null != (line = br.readLine())) {
      buffer.append(line);
    }
    br.close();
    rowData.add(columnLabel, buffer.toString());
  } catch (IOException exc) {
    throw new SQLException(exc.getMessage());
  }
break;
Is there any better way?

Re: Clob support

Posted: Fri Oct 12, 2012 1:32 pm
by Alex K.
Hello,

Your code correct. We will fix the issue and fix will soon be available.

Thank you.

Re: Clob support

Posted: Mon Oct 15, 2012 12:37 pm
by Alex K.
Hello,

Please check archive in the attachment.

Thank you.