You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ibatis.apache.org by rg...@apache.org on 2005/07/11 23:41:13 UTC
svn commit: r215229 -
/ibatis/trunk/cs/docs/dataMapperGuide/src/en/working.xml
Author: rgrabowski
Date: Mon Jul 11 14:41:12 2005
New Revision: 215229
URL: http://svn.apache.org/viewcvs?rev=215229&view=rev
Log:
Corrected typo in table 3.10 (page 49) of the PDF. #userNameList[]# needed to be #UserNameList[]#
The following exception is thrown when you use an incorrect placeholder within the <iterate>:
<!-- WARNING: this will throw an exception -->
<iterate prepend="AND" property="UserNameList"
open="(" close=")" conjunction="OR">
username=#userNameList[]#
</iterate>
[FormatException: Input string was not in a correct format.]
System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +0
IBatisNet.Common.Utilities.Objects.ObjectProbe.GetArrayProperty(Object obj, String indexedName) +196
[ProbeException: Error getting ordinal value from .net object. CauseInput string was not in a correct format.]
IBatisNet.Common.Utilities.Objects.ObjectProbe.GetProperty(Object obj, String propertyName) +442
IBatisNet.Common.Utilities.Objects.ObjectProbe.GetPropertyValue(Object obj, String propertyName) +177
IBatisNet.DataMapper.Configuration.ParameterMapping.ParameterMap.SetParameter(ParameterProperty mapping, IDataParameter dataParameter, Object parameterValue) +192
IBatisNet.DataMapper.Commands.DefaultPreparedCommand.ApplyParameterMap(IDalSession session, IDbCommand command, RequestScope request, IStatement statement, Object parameterObject) +514
IBatisNet.DataMapper.Commands.DefaultPreparedCommand.Create(RequestScope request, IDalSession session, IStatement statement, Object parameterObject) +190
IBatisNet.DataMapper.MappedStatements.MappedStatement.RunQueryForList(RequestScope request, IDalSession session, Object parameterObject, Int32 skipResults, Int32 maxResults, RowDelegate rowDelegate) +73
IBatisNet.DataMapper.MappedStatements.MappedStatement.ExecuteQueryForList(IDalSession session, Object parameterObject, Int32 skipResults, Int32 maxResults) +95
IBatisNet.DataMapper.MappedStatements.MappedStatement.ExecuteQueryForList(IDalSession session, Object parameterObject) +12
IBatisNet.DataMapper.SqlMapper.QueryForList(String statementName, Object parameterObject) +147
Modified:
ibatis/trunk/cs/docs/dataMapperGuide/src/en/working.xml
Modified: ibatis/trunk/cs/docs/dataMapperGuide/src/en/working.xml
URL: http://svn.apache.org/viewcvs/ibatis/trunk/cs/docs/dataMapperGuide/src/en/working.xml?rev=215229&r1=215228&r2=215229&view=diff
==============================================================================
--- ibatis/trunk/cs/docs/dataMapperGuide/src/en/working.xml (original)
+++ ibatis/trunk/cs/docs/dataMapperGuide/src/en/working.xml Mon Jul 11 14:41:12 2005
@@ -3628,7 +3628,7 @@
<entry>Iterates over a property that is of type IList
Example Usage:<programlisting><iterate prepend="AND" property="UserNameList"
open="(" close=")" conjunction="OR">
- username=<emphasis role="blue">#userNameList[]#</emphasis>
+ username=<emphasis role="blue">#UserNameList[]#</emphasis>
</iterate></programlisting>Note: It is very important to include the
square brackets[] at the end of the List property name when
using the Iterate element. These brackets distinguish this