You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juddi.apache.org by "Pollmann, Uta (external)" <Ut...@external.t-mobile.de> on 2005/08/31 13:53:19 UTC
Find_tmodel performs always case sensitive search
> I am using the 0.9.4rc-Version of juddi .
> I call find_tModel with a name and no FindQualifiers. The search is case
> sensitive because in the
> FindTModelByNameQuery the method appendWhere does not work like e.g. in
> FindService ByNameQuery
>
> Here the code for the tModel
> if ((qualifiers != null) && (qualifiers.exactNameMatch))
> {
> sql.append("AND M.NAME = ? ");
> sql.addValue(name);
> }
> else
> {
> sql.append("AND M.NAME LIKE ? ");
> sql.addValue(name.endsWith("%") ? name : name+"%");
> }
>
> And here for the service.
> if (qualifiers == null) // default
> {
> sql.append("(UPPER(NAME) LIKE ?");
> sql.addValue(text.endsWith("%") ? text.toUpperCase() :
> text.toUpperCase()+"%");
> }
> else if ((qualifiers.caseSensitiveMatch) &&
> (qualifiers.exactNameMatch))
> {
> sql.append("(NAME = ?");
> sql.addValue(text);
> }
>
> Could you fix this in the next version?
>
> Thanks Uta