Opened 4 years ago
#2672 new defect
Search Tool multi entry string breaks on space character
| Reported by: | Stacey | Owned by: | Pete Cyr |
|---|---|---|---|
| Priority: | medium | Milestone: | |
| Component: | Search Tool | Version: | N/A |
| Severity: | Keywords: | ||
| Cc: | Database Engine: | N/A | |
| Operating System: | N/A |
Description
SEARCH TOOL: When first entering a search string that contains a space value, IE "Non NPGS", then entering a second search term, IE "PI", the search tool incorrectly inserts the second term after the space inside the original search term resulting in incorrect SQL statement syntax.
From my observations, this broken output SQL happens in string fields
1st search term entry: 'Non NPGS'
@accession.accession_number_part1 = 'non NPGS'
2nd search term: 'PI'
Output SQL built by search tool:
( @accession.accession_number_part1 = 'non OR @accession.accession_number_part1 = 'pi' ) npgs'
Correct SQL search:
@accession.accession_number_part1 = 'non NPGS' OR @accession.accession_number_part1 = 'pi' )
