Christian
-----Message d'origine-----
De : mybati...@googlegroups.com [mailto:mybati...@googlegroups.com] De la part de Todd
Envoyé : September-02-10 11:52 AM
À : mybatis-user
Objet : Parameter Problem inside a sub-query
You have different options:
1) Use LIKE ‘%${domain}%’ – remember that this opens you to SQL injection attacks.
2) Add % to domain variable in the Service/DAO before calling the select and keep only LIKE #{domain}.
3) Use a syntax that allows a normal use of parameter #{domain}. For example, LIKE ‘%’ || #{domain} || ‘%’
Christian
De :
mybati...@googlegroups.com [mailto:mybati...@googlegroups.com] De la
part de Todd Brady
Envoyé : September-02-10 12:26 PM
À : mybati...@googlegroups.com
Objet : Re: Parameter Problem inside a sub-query