You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ibatis.apache.org by "Sandu Turcan (JIRA)" <ib...@incubator.apache.org> on 2004/12/07 21:22:13 UTC

[jira] Created: (IBATIS-23) inline parameter parsing error

inline parameter parsing error
------------------------------

         Key: IBATIS-23
         URL: http://nagoya.apache.org/jira/browse/IBATIS-23
     Project: iBatis for Java
        Type: Bug
    Versions: 2.0.8    
    Reporter: Sandu Turcan


The parser fails to process the new format for inline parameters.
For a string like #propertyName,jdbcType=NUMERIC# it will assume the whole string to be the property name.

It's happening because of a bug in InlineParameterMapParser.newParseMapping. 
At the end of the method there is a line (#121 from 2.0.8.470): 

<code> 
handler = resolveTypeHandler(typeHandlerFactory, parameterClass, token, mapping.getJavaTypeName(), mapping.getJdbcTypeName()); 
</code> 

it uses the variable "token" instead of "mapping.getPropertyName()". 


-- 
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


[jira] Closed: (IBATIS-23) inline parameter parsing error

Posted by "Clinton Begin (JIRA)" <ib...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/IBATIS-23?page=history ]
     
Clinton Begin closed IBATIS-23:
-------------------------------

      Assign To: Clinton Begin
     Resolution: Fixed
    Fix Version: 2.0.9

fixed as described.  thanks for the detailed entry.

> inline parameter parsing error
> ------------------------------
>
>          Key: IBATIS-23
>          URL: http://issues.apache.org/jira/browse/IBATIS-23
>      Project: iBatis for Java
>         Type: Bug
>     Versions: 2.0.8
>     Reporter: Sandu Turcan
>     Assignee: Clinton Begin
>      Fix For: 2.0.9

>
> The parser fails to process the new format for inline parameters.
> For a string like #propertyName,jdbcType=NUMERIC# it will assume the whole string to be the property name.
> It's happening because of a bug in InlineParameterMapParser.newParseMapping. 
> At the end of the method there is a line (#121 from 2.0.8.470): 
> <code> 
> handler = resolveTypeHandler(typeHandlerFactory, parameterClass, token, mapping.getJavaTypeName(), mapping.getJdbcTypeName()); 
> </code> 
> it uses the variable "token" instead of "mapping.getPropertyName()". 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.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


[jira] Commented: (IBATIS-23) inline parameter parsing error

Posted by "Sandu Turcan (JIRA)" <ib...@incubator.apache.org>.
     [ http://nagoya.apache.org/jira/browse/IBATIS-23?page=comments#action_56593 ]
     
Sandu Turcan commented on IBATIS-23:
------------------------------------

I've looked further into it and found that in certain cases the issue is not reproduceable.
In order to for it to manifest itself javaType should be null.

(Line #210 in InlineParameterMapParser.java v 2.0.8)

> inline parameter parsing error
> ------------------------------
>
>          Key: IBATIS-23
>          URL: http://nagoya.apache.org/jira/browse/IBATIS-23
>      Project: iBatis for Java
>         Type: Bug
>     Versions: 2.0.8
>     Reporter: Sandu Turcan

>
> The parser fails to process the new format for inline parameters.
> For a string like #propertyName,jdbcType=NUMERIC# it will assume the whole string to be the property name.
> It's happening because of a bug in InlineParameterMapParser.newParseMapping. 
> At the end of the method there is a line (#121 from 2.0.8.470): 
> <code> 
> handler = resolveTypeHandler(typeHandlerFactory, parameterClass, token, mapping.getJavaTypeName(), mapping.getJdbcTypeName()); 
> </code> 
> it uses the variable "token" instead of "mapping.getPropertyName()". 

-- 
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