Files
danbooru/test/unit
evazion 8cbcec285d search: fix multiple metatag searches not working in some cases.
Bug: in some cases searching for multiple metatags would cause one
metatag to be ignored. For example, a search for {{user:1 pool:2}} would
be treated as a search for {{pool:2}}.

Cause: we used `ActiveRecord::Relation#merge` to combine two relations,
which was wrong because `merge` doesn't combine `column IN (?)` clauses
correctly. If there are two `column IN (?)` clauses on the same column,
then `#merge` takes only the second clause and ignores the first.

Fix: write our own half-baked `#and` method to work around Rails'
broken-by-design `#merge` method.

ref: https://github.com/rails/rails/issues/33501.
2020-04-27 22:29:42 -05:00
..
2020-03-21 21:07:35 -05:00
2020-04-21 00:32:52 -05:00
2020-03-21 21:07:35 -05:00
2020-03-20 18:03:00 -05:00
2020-03-21 21:07:35 -05:00
2020-04-21 00:31:16 -05:00
2020-03-21 21:07:35 -05:00
2020-03-21 21:07:35 -05:00
2020-03-21 21:07:35 -05:00
2020-02-23 17:52:38 -06:00
2020-04-06 14:13:22 -05:00