The text search bullet claimed smith finds Smithson and Goldsmith, while the same sentence said the comparison is case sensitive. Both cannot be true.
Why it is wrong
%mp_searchdata builds ("COL"n ? "value") per character column - the SAS CONTAINS operator, which the SAS language reference documents as case sensitive - and the Viewer's viewdata service passes the search value straight through, so nothing normalises case.
Checked against the mocked backend, on one table that holds both cases:
Selkie returns 280 rows, selkie returns 0
squid returns 100 rows, Squid returns 0
Change
The bullet now reads: Smith finds Smithson and smith finds Goldsmith, but smith will not find Smithson.
The same wrong example is corrected on the Viewer documentation page (dc/docs.datacontroller.io PR #5), so the two stay consistent.
## What
The text search bullet claimed `smith` finds `Smithson` and `Goldsmith`, while the same sentence said the comparison is case sensitive. Both cannot be true.
## Why it is wrong
`%mp_searchdata` builds `("COL"n ? "value")` per character column - the SAS `CONTAINS` operator, which the SAS language reference documents as case sensitive - and the Viewer's `viewdata` service passes the search value straight through, so nothing normalises case.
Checked against the mocked backend, on one table that holds both cases:
- `Selkie` returns 280 rows, `selkie` returns 0
- `squid` returns 100 rows, `Squid` returns 0
## Change
The bullet now reads: `Smith` finds `Smithson` and `smith` finds `Goldsmith`, but `smith` will not find `Smithson`.
The same wrong example is corrected on the Viewer documentation page (dc/docs.datacontroller.io PR #5), so the two stay consistent.
The post claimed `smith` finds `Smithson`, which only holds for a case
insensitive match. The comparison is case sensitive, so the search term has
to match the case as stored: `Smith` finds `Smithson`, and `smith` finds
`Goldsmith`, but `smith` will not find `Smithson`.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
What
The text search bullet claimed
smithfindsSmithsonandGoldsmith, while the same sentence said the comparison is case sensitive. Both cannot be true.Why it is wrong
%mp_searchdatabuilds("COL"n ? "value")per character column - the SASCONTAINSoperator, which the SAS language reference documents as case sensitive - and the Viewer'sviewdataservice passes the search value straight through, so nothing normalises case.Checked against the mocked backend, on one table that holds both cases:
Selkiereturns 280 rows,selkiereturns 0squidreturns 100 rows,Squidreturns 0Change
The bullet now reads:
SmithfindsSmithsonandsmithfindsGoldsmith, butsmithwill not findSmithson.The same wrong example is corrected on the Viewer documentation page (dc/docs.datacontroller.io PR #5), so the two stay consistent.