#33700Invalid behavior of search for integer in Backend search
Description
Backend search (and Live search once #31761 has been merged) do not behave as stated in the 4.6 Release notes (http://wiki.typo3.org/TYPO3_4.6#Live_Search):
> In previous TYPO3 versions, there were several problems with Backend search:
>
> * …
> * it searched “uid” and other numeric fields even if the value was not numeric
> * it used LIKE x search on numeric fields
> * …
In fact current implementation does not replace the LIKE operator with an SQL equal statement for numeric fields but whenever a query that can be interpreted as integer is encountered, regardless of the underlying column type.
Example: If you have pages “102 W”, “102 E”, you used to be able to search for “102” and get them, but now the query is casted to an integer and the page title is search for an equality on “102” resulting in an empty result list.
The underlying column type should be used instead (code to cache this information is already available within DBAL and Helmut started months ago to backport it to Core itself: #28654).
Reviews 4
- TYPO3_4-7 16477[BUGFIX] Invalid behavior of search for integer in Backend search
- TYPO3_4-7 16476[BUGFIX] Invalid behavior of search for integer in Backend search
- TYPO3_4-6 16479[BUGFIX] Invalid behavior of search for integer in Backend search
- main 13990[BUGFIX] Invalid behavior of search for integer in Backend search