You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ibatis.apache.org by "Ian Zabel (JIRA)" <ib...@incubator.apache.org> on 2008/07/17 19:35:31 UTC

[jira] Commented: (IBATIS-244) CLONE -configured type handler not used in insert

    [ https://issues.apache.org/jira/browse/IBATIS-244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12614456#action_12614456 ] 

Ian Zabel commented on IBATIS-244:
----------------------------------

Oh sweet. You got a two-for-one, Clinton.

This fix also closes http://issues.apache.org/jira/browse/IBATIS-512

Works well in my testing! Thanks.

> CLONE -configured type handler not used in insert
> -------------------------------------------------
>
>                 Key: IBATIS-244
>                 URL: https://issues.apache.org/jira/browse/IBATIS-244
>             Project: iBatis for Java
>          Issue Type: Bug
>          Components: SQL Maps
>    Affects Versions: 2.1.0
>         Environment: linux, java 1.5
>            Reporter: somakani
>            Assignee: Clinton Begin
>            Priority: Minor
>             Fix For: 2.3.3
>
>         Attachments: PrimitivePrefix.patch
>
>
> Custom type handlers which are configured within SqlMapConfig, such as:
> <typeHandler javaType='java.lang.Boolean' jdbcType='CHAR' callback='com...BooleanTypeHandler'/>
> are working properly and automatically to convert types for queries.  However for inserts, the type conversion is not being called based on the above type handler mapping.  We have confirmed this behavior by placing debug print statements in the methods of the type handler being used.
> What does work, and what we're currently using as a workaround, is to use an explicit, inline type handler within the insert map (such as #private,handler=com...BooleanTypeHandler#). 

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


Re: [jira] Commented: (IBATIS-244) CLONE -configured type handler not used in insert

Posted by Clinton Begin <cl...@gmail.com>.
Thanks so much for letting me know!

Cheers,
Clinton

On Thu, Jul 17, 2008 at 11:35 AM, Ian Zabel (JIRA) <
ibatis-dev@incubator.apache.org> wrote:

>
>    [
> https://issues.apache.org/jira/browse/IBATIS-244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12614456#action_12614456]
>
> Ian Zabel commented on IBATIS-244:
> ----------------------------------
>
> Oh sweet. You got a two-for-one, Clinton.
>
> This fix also closes http://issues.apache.org/jira/browse/IBATIS-512
>
> Works well in my testing! Thanks.
>
> > CLONE -configured type handler not used in insert
> > -------------------------------------------------
> >
> >                 Key: IBATIS-244
> >                 URL: https://issues.apache.org/jira/browse/IBATIS-244
> >             Project: iBatis for Java
> >          Issue Type: Bug
> >          Components: SQL Maps
> >    Affects Versions: 2.1.0
> >         Environment: linux, java 1.5
> >            Reporter: somakani
> >            Assignee: Clinton Begin
> >            Priority: Minor
> >             Fix For: 2.3.3
> >
> >         Attachments: PrimitivePrefix.patch
> >
> >
> > Custom type handlers which are configured within SqlMapConfig, such as:
> > <typeHandler javaType='java.lang.Boolean' jdbcType='CHAR'
> callback='com...BooleanTypeHandler'/>
> > are working properly and automatically to convert types for queries.
>  However for inserts, the type conversion is not being called based on the
> above type handler mapping.  We have confirmed this behavior by placing
> debug print statements in the methods of the type handler being used.
> > What does work, and what we're currently using as a workaround, is to use
> an explicit, inline type handler within the insert map (such as
> #private,handler=com...BooleanTypeHandler#).
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>