Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extra param tag generated when using limit attribute #64

Open
d3ep4k opened this issue Nov 2, 2022 · 0 comments
Open

Extra param tag generated when using limit attribute #64

d3ep4k opened this issue Nov 2, 2022 · 0 comments
Assignees

Comments

@d3ep4k
Copy link
Contributor

d3ep4k commented Nov 2, 2022

Extra tag generated with default value -1. This can be caused due to limit attribute

<Param name="l" type="number" required="true" min="5" max="20" value="5"/>
<Sql id="loc" limit="l" >
    select name, lat, lon from city where name like '$q%'
</Sql>
<m:param name="l" type="NUMBER" value="${mtgReq.params['l']}" max="20.0" min="5.0" defaultValue="5" isRequired="true"/>
<m:param name="l" value="${mtgReq.params['l']}" type="number" defaultValue="-1"/>
<sql:query var="loc" dataSource="${datasource}" maxRows="${mtgReq.params['l']}">select name, lat, lon from city where name like CONCAT(? ,'%')
	<sql:param value="${mtgReq.params['q']}"/>
</sql:query>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants