Avoid unneeded duplicate conditions in SQL SELECT queries in the Global Search when there are duplicate search tokens by removing them before constructing the SQL queries.
Closes T16094
Differential D26058
Remove duplicate Query search tokens before constructing SQL queries aklapper on Tue, Jun 3, 10:42. Authored by
Details
Avoid unneeded duplicate conditions in SQL SELECT queries in the Global Search when there are duplicate search tokens by removing them before constructing the SQL queries. Closes T16094
Diff Detail
Event TimelineComment Actions Pasting full unit test output here before garbage collection kicks in: Assertion failed, expected values to be equal (at PhutilSearchQueryCompilerTestCase.php:303): Function compilation of query: cat title:="Meow Meow" Expected vs Actual Output Diff --- Old Value +++ New Value @@ -1,18 +1 @@ -Array -( - [0] => Array - ( - [0] => - [1] => and - [2] => cat - ) - - [1] => Array - ( - [0] => title - [1] => exact - [2] => Meow Meow - ) - -) - +false |