|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
[jira] Created: (IBATIS-619) "select" can not work with a "include" tag in sql mapping file."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-unsubscribe@... For additional commands, e-mail: dev-help@... |
|
|
[jira] Closed: (IBATIS-619) "select" can not work with a "include" tag in sql mapping file.[ https://issues.apache.org/jira/browse/IBATIS-619?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Clinton Begin closed IBATIS-619. -------------------------------- Resolution: Cannot Reproduce Assignee: Clinton Begin Cannot reproduce this. We have unit tests that are identical to your case, and they pass. Please submit a failing test case and attach it to this JIRA ticket (i.e. reopen if necessary). > "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 Beta 1 > Reporter: Yuan Tao > Assignee: Clinton Begin > Original Estimate: 24h > Remaining Estimate: 24h > > 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-unsubscribe@... For additional commands, e-mail: dev-help@... |
| Free embeddable forum powered by Nabble | Forum Help |