ImageListPager: Don't query by oi_user
authorBrad Jorsch <bjorsch@wikimedia.org>
Wed, 12 Dec 2018 15:31:40 +0000 (10:31 -0500)
committerBrad Jorsch <bjorsch@wikimedia.org>
Wed, 12 Dec 2018 15:31:40 +0000 (10:31 -0500)
commitc969d0c5650bc1805d1a0ef1da839cda2faafb0f
tree24d75ec45689326b751a9826dd764f402d56a3a5
parent8e965a9d276505edf58065810fe9a59ba49ddc32
ImageListPager: Don't query by oi_user

For some reason we have indexes for `image` on `(img_user_text,img_timestamp)` and
`(img_user,img_timestamp)`, but for `oldimage` we only have
`(oi_user_text,oi_timestamp)`. Thus, when building the query in
ImageListPager, we have to be sure to avoid trying to use `oi_user`
rather than `oi_user_text` in the WHERE part.

Bug: T211774
Change-Id: Ibea058031f1cb3421e92e09f0a705ea00fb22008
includes/specials/pagers/ImageListPager.php