[ http://nagoya.apache.org/jira/browse/IBATIS-4?page=history ]

Clinton Begin updated IBATIS-4:
-------------------------------

    Attachment: iBATISClob.zip


This is an example submitted by an iBATIS user to implement CLOB and BLOB 
support via the Custom Type Handler API.

> setString instead of setClob method will be used
> ------------------------------------------------
>
>          Key: IBATIS-4
>          URL: http://nagoya.apache.org/jira/browse/IBATIS-4
>      Project: iBatis for Java
>         Type: Bug
>   Components: SQL Maps
>     Reporter: Clinton Begin
>      Fix For: 2.0.8
>  Attachments: iBATISClob.zip
>
>  Hi,
> I'm having a table which contains a column type of clob.
> In code I use a String to represent this clob in my DTO.
> Now when I set a String bigger than 32kB I get the error
> that the method "setString" (of PreparedStatement) can
> only accept Strings with size less than 32kB. Although
> I've set the jdbcType="CLOB" and
> javaType="java.lang.String" iBatis calls the "setString"
> instead the "setClob" method.
> To circumvent this problem I'm using now the LobHandler
> of Spring, but it would be fine not have to use these
> Spring classes to handle with CLOBs.
> Cheers,
> Martin
> PS. Reading is no problem. Currently I'm developing also
> with a blob. Perhaps there is the same problem.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira

Reply via email to