Skip to content

Commit

Permalink
Fixed searching by sample name. Refs #8401.
Browse files Browse the repository at this point in the history
  • Loading branch information
jawrainey committed Nov 14, 2013
1 parent 179bc3d commit f0841cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Code/Mantid/Framework/ICat/src/ICat4/ICat4Catalog.cpp
Expand Up @@ -172,7 +172,7 @@ namespace Mantid
if(!inputs.getSampleName().empty())
{
joinClause.push_back("JOIN inves.samples sample");
whereClause.push_back("sample.name = LIKE '%" + inputs.getSampleName() + "%'");
whereClause.push_back("sample.name LIKE '%" + inputs.getSampleName() + "%'");
}

// If the user has input an investigator's name or selected my data then we want to JOIN
Expand All @@ -186,7 +186,7 @@ namespace Mantid
// (E.g. they want to display or search through all the data they have access to.
if (inputs.getMyData())
{
whereClause.push_back("usr.name = :user ");
whereClause.push_back("usr.name = :user");
}

// We then check what specific item was input (or both) and create the related WHERE clause.
Expand Down

0 comments on commit f0841cd

Please sign in to comment.