[ 
https://jira.duraspace.org/browse/DS-705?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tim Donohue closed DS-705.
--------------------------

    Resolution: Incomplete

Closing this old ticket.  The reason behind this change was never clarified.  
If someone finds this change to be necessary, please feel free to add a 
comment.  We can always reopen this ticket if needed.
                
> Returning CLOBs fields data from ORACLE
> ---------------------------------------
>
>                 Key: DS-705
>                 URL: https://jira.duraspace.org/browse/DS-705
>             Project: DSpace
>          Issue Type: Bug
>          Components: DSpace API, JSPUI
>            Reporter: Danilo Azevedo
>            Priority: Critical
>
> // Support CLOBs in place of TEXT columns in Oracle
> row.setColumn(name, results.getString(i)); is always returning NULL
> possible fix:
> try {
>                     java.sql.Clob clob = results.getClob(i);
>                     java.io.Writer writer = new java.io.StringWriter();
>                     char[] buffer = new char[4000];
>                     Reader reader = new BufferedReader(new 
> java.io.InputStreamReader(clob.getAsciiStream()));
>                     int n;
>                     while ((n = reader.read(buffer)) != -1) {
>                         writer.write(buffer, 0, n);
>                     }
>                     row.setColumn(name, writer.toString());
>                 } catch (Exception ioE) {
>                     row.setColumn(name, results.getString(i));
>                 }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to