[ http://nagoya.apache.org/jira/browse/IBATIS-4?page=history ]
Clinton Begin closed IBATIS-4:
------------------------------
Assign To: Clinton Begin
Resolution: Won't Fix
Fix Version: 2.0.8
CLOB and BLOB aren't officially supported at this time. However, you can
implement a custom type handler to achieve this. The file attached to this
issue contains example implementations submitted by another user.
> 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
> Assignee: 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