"select" can not work with a "include" tag in sql mapping file. ---------------------------------------------------------------
Key: IBATIS-619 URL: https://issues.apache.org/jira/browse/IBATIS-619 Project: iBatis for Java Issue Type: Bug Components: SQL Maps Affects Versions: 3.0.0 Reporter: Yuan Tao I have a sql mapping file generated by ibator has the config below: ... <sql id="Base_Column_List" > <!-- WARNING - @ibatorgenerated This element is automatically generated by Apache iBATIS Ibator, do not modify. This element was generated on Tue Aug 04 17:32:47 CST 2009. --> NAME, VALUE </sql> ... <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterClass="bizfuse.pac.model.Sequence" > <!-- WARNING - @ibatorgenerated This element is automatically generated by Apache iBATIS Ibator, do not modify. This element was generated on Tue Aug 04 17:32:47 CST 2009. --> select <include refid="BF_SEQUENCE.Base_Column_List" /> from BF_SEQUENCE where NAME = #name:VARCHAR# </select> ... When I load the mapping file, and execute sqlMapClient.queryForObject("selectByPrimaryKey", sequence), it throws a SqlException. And I run step into SqlSourceFactory.isDynamic method, find the code below: isDynamic = isDynamic(includeNode, isDynamic); It will be always false when the "select" has a "include" tag, while it seems like should be true. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@ibatis.apache.org For additional commands, e-mail: dev-h...@ibatis.apache.org