Hi adev,
> <sql:query>
> select * from location where location_name like
> %<sql:param type="xs:string" select="//@countryname"/>%
> </sql:query>
> I am expecting the query to be executed as
> select * from location where location_name like '%France%'
>
> but it is getting executed as select * from location where location_name
> like '%'France'%', thus giving error.
Maybe you could add the % signs using the XPath concat() function:
<sql:query> select * from location where location_name like
<sql:param
type="xs:string"
select="concat('%', //@countryname, '%')"
/>
</sql:query>
But i'm not sure wether this will work.
HTH
florian
--
You receive this message as a subscriber of the
[hidden email] mailing list.
To unsubscribe: mailto:
[hidden email]
For general help: mailto:
[hidden email]?subject=help
OW2 mailing lists service home page:
http://www.ow2.org/wws