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/13 19:42:56 UTC
[jira] Commented: (IBATIS-23) inline parameter parsing error
[ 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