[ 
https://issues.apache.org/jira/browse/OPENJPA-525?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Albert Lee updated OPENJPA-525:
-------------------------------

    Attachment: OPENJPA-525.2.patch

Attempt to fix the incompatible ClassCastException:

1) reverted the translate() method implementation
2) enhanced the AbstractResult.getStringInternal() to include a new parameter 
indicating if the String is a ClobString, such that the 
ResultSetResult.getStringInternal() can use it to determine if the 
_dict.getClobString() or _dict.getString() should be call.

After this patch is applied, OpenJPA trunk built and all tests ran successfully.

Amy and Milosz, can you please try this patch to verify it does solve the 
original and subsequent regression problems?

Thanks,
Albert Lee.

> Inserts new entity with NULL value for Clob column actually inserts empty 
> string
> --------------------------------------------------------------------------------
>
>                 Key: OPENJPA-525
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-525
>             Project: OpenJPA
>          Issue Type: Bug
>    Affects Versions: 1.0.0, 1.0.2, 1.1.0, 2.0.0
>         Environment: OpenJPA 1.0.0, 1.0.2
> Oracle XE 10g (JDBC driver 10.2.0.3.0
> JRE 1.5.0_13
>            Reporter: Frank Le
>             Fix For: 1.1.1, 2.0.0
>
>         Attachments: OPENJPA-525.2.patch, OPENJPA525.patch, 
> OPENJPA525_1_1_x.patch
>
>
> Inserts new entity with NULL value for Clob column with "nullable = true" 
> actually inserts empty string as the value!
> Here's the persistence class:
> public class Exam... {
>     @Lob
>     private String text;
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to