wiki.techinc.nl/includes
Bartosz Dziewoński c3d952cf13 IndexPager: Fix paging with setIncludeOffset and multiple index fields
When using `setIncludeOffset( true )`, queries generated by the pager
use `>=` or '<=' for the index field instead of `>` or `<`, in order
to include the specified offset in the results.

However, when the index covers multiple fields (indicated by
`getIndexField()` returning an array or arrays), this must be only
done for the last field. Otherwise the conditions become redundant,
and effectively only the first field of the index is compared.

In short:
  (A, B) >= (1, 2)
is equivalent to:
  ((A > 1) OR (A = 1 AND B >= 2))
and not:
  ((A >= 1) OR (A = 1 AND B >= 2))

Change-Id: I44f975cdd7b8bdd243b6d5968ee0b8d1cb953292
2022-09-04 01:06:52 +02:00
..
actions actions: Migrate to SelectQueryBuilder API 2022-08-29 10:27:48 +01:00
api Merge "rdbms: log invalid INDEX clauses with multi-table selects" 2022-09-02 02:06:53 +00:00
auth Merge "auth: Introduce quick permissions checks for AuthManager" 2022-06-01 23:22:41 +00:00
block Merge "Block: Expose list of block types as constant" 2022-08-29 17:59:42 +00:00
cache LinksUpdate: Last pieces of templatelinks migration 2022-07-25 20:23:30 +02:00
changes Setup: Remove internal short-cut config $wgUseEnotif 2022-08-17 23:41:30 +02:00
changetags ChangeTags: Improve database query hygine 2022-08-01 19:36:39 +02:00
collation IcuCollation: Add mappings for versions 70 and 71 2022-08-28 19:17:45 +01:00
CommentFormatter Get rid of warnings on PHP 8.1 2022-06-13 04:42:20 -04:00
composer Pass link in a map 2021-12-23 17:54:05 +00:00
config [php8] Don't use strlen on potentially null string 2022-07-24 06:37:11 -07:00
content Merge "Define concrete method in order to deprecate it in subclasses" 2022-08-29 12:16:53 +00:00
context Merge "DerivativeContext: Create WikiPage from derivated title" 2022-08-06 22:05:06 +00:00
dao Simplify assertion for false around wiki id and domain id 2022-06-18 09:49:13 +02:00
db rdbms: Move Database::factory() to DatabaseFactory service 2022-08-31 10:53:50 +10:00
debug Do minor code cleanup 2022-06-24 13:52:42 +02:00
deferred Merge "Replace trivial usages of code in strings with concatenation" 2022-08-26 16:54:56 +00:00
diff Merge "OutputPage: Provide consistent info about whether the revision shown is current" 2022-08-31 13:37:23 +00:00
edit ParsoidOutputStash: make storage backend configurable. 2022-06-14 14:11:37 +01:00
editpage EditPage: Disentangle edit summary and section title 2022-07-19 09:56:05 +00:00
exception Use MainConfigNames constant to refer configs 2022-08-17 21:27:48 +02:00
export Allow DB config to be reloaded on the fly 2022-08-05 17:32:12 +02:00
externalstore externalstore: Migrate Database::select usages to SelectQueryBuilder 2022-08-05 18:40:37 +02:00
filebackend filebackend: Remove LBFactory dep from LockManager service 2022-08-02 22:22:48 -07:00
filerepo filerepo: avoid PHP 8 warnings in File::splitMime() if $mime is null 2022-08-23 17:12:01 -07:00
gallery Set alt in galleries, despite caption being visible 2022-06-07 18:20:26 -04:00
historyblob Merge "DiffHistoryBlob: Remove workarounds for old PECL xdiff versions" 2022-06-09 16:14:42 +00:00
Hook TempUser CentralAuth integration 2022-05-10 09:06:05 +10:00
HookContainer PermissionManager: Add PermissionErrorAudit hook 2022-08-30 00:25:50 -07:00
htmlform Allow returning StatusValue from HTMLForm submit callbacks 2022-08-22 20:43:20 +00:00
http Use MainConfigNames instead of string literals, #3 2022-04-26 14:31:26 +03:00
import ImportStreamSource::newFromURL() Prevent passing null to fwrite 2022-08-16 13:39:39 +01:00
installer Merge "rdbms: Move Database::factory() to DatabaseFactory service" 2022-09-02 01:51:38 +00:00
interwiki Merge "interwiki: Adjust documentation for InterwikiLookup::getAllPrefixes" 2022-03-09 22:28:04 +00:00
jobqueue Merge "Replace trivial usages of code in strings with concatenation" 2022-08-26 16:54:56 +00:00
json Add return type to jsonSerialize() 2022-07-02 15:34:02 +00:00
language docs: Clarify that functions returning namespace names include underscores (not spaces) 2022-08-30 21:15:19 +00:00
languages Fix the autonym of the Iñupiaq language 2022-08-17 15:58:15 +03:00
libs Merge "Make StatusValue accept MessageValue." 2022-09-02 16:03:16 +00:00
linkeddata
linker Add support for write new for templatelinks migration 2022-07-12 14:46:54 +02:00
logging Merge "Show namespace instead of SpecialAllPages in plaintext block log message" 2022-07-28 21:38:58 +00:00
mail mail: Replace deprecated User::getOption 2022-08-05 22:31:05 +00:00
media Exif: Minor cleanup 2022-08-16 12:08:59 +01:00
Message Add Message/MessageValue user group member parameter type 2021-11-16 11:24:35 -05:00
Navigation
objectcache Merge "SqlBagOStuff: Fix modtoken comparison" 2022-08-19 22:44:58 +00:00
page Merge "OutputPage: Provide consistent info about whether the revision shown is current" 2022-08-31 13:37:23 +00:00
pager IndexPager: Fix paging with setIncludeOffset and multiple index fields 2022-09-04 01:06:52 +02:00
ParamValidator/TypeDef Fix many typos in comments 2022-05-10 12:46:11 +00:00
parser Merge "ParsoidOutputAccess: support target language." 2022-09-02 15:06:27 +00:00
password Use MainConfigNames instead of string literals, #4 2022-04-26 19:03:37 +03:00
Permissions PermissionManager: Add PermissionErrorAudit hook 2022-08-30 00:25:50 -07:00
poolcounter poolcounter: Avoid calling parent::doWork in PoolWorkArticleView classes 2022-05-13 20:36:25 +00:00
preferences Deprecate Parser::getFreshParser() 2022-07-05 14:09:36 +10:00
profiler profiler: Remove deprecated 'trace' feature in SectionProfiler 2022-04-29 11:18:50 +00:00
rcfeed Use MainConfigNames instead of string literals, #4 2022-04-26 19:03:37 +03:00
registration Collect autoloader info in ExtensionProcessor 2022-06-07 17:39:00 +02:00
ResourceLoader ResourceLoaderSkinModule: Document new interface styles 2022-08-26 14:19:20 +00:00
Rest ParsoidOutputAccess: support target language. 2022-09-02 14:00:40 +00:00
Revision Improve docs of various ::getQueryInfo functions 2022-08-13 21:18:44 +02:00
revisiondelete Call IContextSource::getAuthority instead of IContextSource::getUser 2022-06-29 22:22:44 +02:00
revisionlist Get rid of warnings on PHP 8.1 2022-06-13 04:42:20 -04:00
search ppearance update of "Sister project widgets" on Special:Search 2022-08-09 18:03:47 +00:00
session SessionManager: write default edit token during session creation 2022-08-16 21:22:25 +00:00
Settings SettingsBuilder: report warnings 2022-07-15 12:24:20 +02:00
shell Replace trivial usages of code in strings with concatenation 2022-08-26 12:26:44 +00:00
site site: Consistently return null from Site::getDomain() 2022-07-06 19:07:01 +00:00
skins Merge "SkinTemplate: Make associatedPages menu backwards compatible with namespaces" 2022-09-01 20:14:21 +00:00
sparql Replace some more usages of Wikimedia\(suppress|restore)Warnings() 2022-02-24 20:27:46 +00:00
specialpage SpecialPages: "related" references updated to "associated" 2022-08-18 13:46:06 +02:00
specials Track change email/password 2022-09-01 09:15:42 -06:00
Storage Storage: Remove using LoadBalancer::getConnectionRef in NameTableStore 2022-08-08 15:16:14 +00:00
templates Remove errorbox class 2022-02-11 22:22:23 +00:00
tidy Don't reconstruct formatting elements in figures 2022-08-31 18:55:23 -04:00
title docs: Clarify that functions returning namespace names include underscores (not spaces) 2022-08-30 21:15:19 +00:00
upload UploadStash: Check if us_prop is set in the fileMetadata 2022-08-02 18:15:33 +01:00
user Merge "Replace usage of User::getOption" 2022-08-25 17:13:02 +00:00
utils filerepo: avoid PHP 8 warnings in File::splitMime() if $mime is null 2022-08-23 17:12:01 -07:00
watcheditem Remove references to removed 'watchlist' query group 2022-08-16 20:33:43 +02:00
watchlist Setup: Remove internal short-cut config $wgUseEnotif 2022-08-17 23:41:30 +02:00
widget Make use of ?? and ?: operators where it makes sense 2022-08-04 21:43:12 +02:00
xml Fix many typos in comments 2022-05-10 12:46:11 +00:00
.htaccess
ActorMigration.php
ActorMigrationBase.php Improve docs of various ::getQueryInfo functions 2022-08-13 21:18:44 +02:00
AutoLoader.php Merge "Collect autoloader info in ExtensionProcessor" 2022-06-08 06:11:58 +00:00
BadFileLookup.php Use getWithSetCallback() instead of get() + set() 2021-11-18 18:58:13 +00:00
BootstrapHelperFunctions.php Setup.php: clarify the use of $IP. 2022-05-03 11:53:05 +02:00
CategoriesRdf.php phan: Disable scalar_implicit_cast setting 2022-03-18 18:52:24 +00:00
Category.php Category: Migrate to use SelectQueryBuilder in ::getMembers 2022-07-07 07:50:43 +00:00
CategoryViewer.php Use SelectQueryBuilder instead of IDatabase::select() 2022-08-01 15:56:20 +01:00
CommentStore.php Improve docs of various ::getQueryInfo functions 2022-08-13 21:18:44 +02:00
CommentStoreComment.php
config-merge-strategies.php Turn DefaultSettings.php into a deprecated stub 2022-05-17 16:50:56 +02:00
config-schema.php Support CDN query parameter re-ordering 2022-08-09 01:53:38 +00:00
config-vars.php Support CDN query parameter re-ordering 2022-08-09 01:53:38 +00:00
ConfiguredReadOnlyMode.php Use type hints in ReadOnlyMode/ConfiguredReadOnlyMode and improve docs 2022-06-20 19:49:51 +02:00
ContentSecurityPolicy.php Use MainConfigNames instead of string literals, #4 2022-04-26 19:03:37 +03:00
DefaultSettings.php Turn DefaultSettings.php into a deprecated stub 2022-05-17 16:50:56 +02:00
Defines.php PHPUnit: introduce setMainCache 2022-07-07 16:25:59 +10:00
DeprecatedGlobal.php
DerivativeRequest.php
DevelopmentSettings.php debug: Fix $wgDebugRawPage to work with PSR-3 debug logging 2022-04-13 00:29:40 +00:00
DummyLinker.php Introduce CommentFormatter 2021-09-28 11:13:03 -07:00
EditPage.php EditPage: Refactor large showIntro method 2022-08-29 15:45:19 -07:00
Emptiable.php
EventRelayerGroup.php
ExtensionInfo.php
FauxRequest.php Use name constants to access config settings. 2022-04-07 13:02:28 +02:00
FauxRequestUpload.php
FauxResponse.php Use name constants to access config settings. 2022-04-07 13:02:28 +02:00
FeedUtils.php Use name constants to access config settings. 2022-04-07 13:02:28 +02:00
FileDeleteForm.php SpecialDelete: check permissions again when deleting 2022-04-11 12:47:47 -04:00
ForeignResourceManager.php ForeignResourceManager: Property and function docblocks 2022-08-16 21:42:46 +00:00
ForkController.php Hard deprecate JobQueueGroup::singleton()/destroySingletons() 2022-06-24 18:48:31 +02:00
FormOptions.php Type hints for ArrayAccess and JsonSerializable 2022-04-11 15:06:27 +03:00
GitInfo.php GitInfo: simplify and prepare for converting to a service 2022-06-30 00:09:48 +00:00
GlobalFunctions.php Fix documentation of wfTimestamp() 2022-08-24 18:25:38 -07:00
HeaderCallback.php
Hooks.php
Html.php Handle null passed to wfShorthandToInteger() and Html::element() 2022-07-12 13:21:18 +00:00
HtmlHelper.php Add HtmlHelper::modifyElements() for small HTML modifications 2022-05-08 15:55:00 +02:00
Linker.php Linker: Omit default value '' on Html::rawElement 2022-08-23 08:38:49 +00:00
LinkFilter.php Make use of ?? and ?: operators where it makes sense 2022-08-04 21:43:12 +02:00
ListToggle.php
MagicWord.php Fix various documentation related to null types 2022-02-26 10:31:24 +01:00
MagicWordArray.php
MagicWordFactory.php Add {{=}} as a built-in magic word 2022-05-20 13:08:20 -04:00
MainConfigNames.php Support CDN query parameter re-ordering 2022-08-09 01:53:38 +00:00
MainConfigNames.template Update docstring per introduction of maintenance/generateConfigSchema.php 2022-08-04 09:42:47 +02:00
MainConfigSchema.php OutputPage: replace legacy link type "shortcut icon" with standard 2022-08-19 18:04:24 +06:00
MediaWiki.php rdbms: Remove synchronous pre-send waitForReplication fallback 2022-08-24 20:52:17 +00:00
MediaWikiServices.php Merge "rdbms: Move Database::factory() to DatabaseFactory service" 2022-09-02 01:51:38 +00:00
MediaWikiVersionFetcher.php
MergeHistory.php Remove unneeded use of TitleValue::newFromPage 2022-07-31 12:26:11 +00:00
MovePage.php Use SelectQueryBuilder instead of IDatabase::select() 2022-08-01 15:56:20 +01:00
MWGrants.php Hard deprecated the MWGrants class 2022-07-11 17:10:36 +00:00
MWTimestamp.php Hard-deprecate MWTimestamp::getHumanTimestamp 2022-06-20 02:20:25 +00:00
NoLocalSettings.php NoLocalSettings: Pass an EmptyBagOStuff to TemplateParser 2021-11-03 17:23:26 +00:00
OrderedStreamingForkController.php Stop using is_resource() where possible 2022-01-26 10:03:23 +11:00
OutputHandler.php Remove Flash cross-domain policy mangling 2022-07-22 11:44:49 +10:00
OutputPage.php Merge "Allow customizing OutputPage::showErrorPage() return URL" 2022-09-02 10:22:47 +00:00
PageProps.php PageProps: Migrate Database::select usages to SelectQueryBuilder 2022-08-05 18:35:48 +02:00
PathRouter.php
PHPVersionCheck.php Prepare active branch following REL1_38 cut, labelling as 1.39-alpha 2022-03-14 21:50:17 -04:00
Pingback.php Use name constants to access config settings. 2022-04-07 13:02:28 +02:00
ProtectionForm.php Replace deprecated wfReadOnly/wfReadOnlyReason 2022-06-20 15:35:24 +00:00
ProxyLookup.php
RawMessage.php
ReadOnlyMode.php Use type hints in ReadOnlyMode/ConfiguredReadOnlyMode and improve docs 2022-06-20 19:49:51 +02:00
ServiceWiring.php Merge "rdbms: Move Database::factory() to DatabaseFactory service" 2022-09-02 01:51:38 +00:00
Setup.php Remove deprecated $wgParser 2022-08-03 14:40:16 +02:00
SetupDynamicConfig.php Setup: Remove internal short-cut config $wgUseEnotif 2022-08-17 23:41:30 +02:00
SiteConfiguration.php Merge "SiteConfiguration: Document some non-obvious optimizations" 2022-08-04 23:32:07 +00:00
SiteStats.php SiteStats: Migrate Database::select usages to SelectQueryBuilder 2022-08-05 18:45:48 +02:00
SiteStatsInit.php SiteStats: Make sure initSiteStats.php re-distribute values 2022-08-22 12:24:56 +00:00
Status.php ResourceLoader namespace (attempt 2) 2022-05-24 15:41:46 +00:00
StreamFile.php Use name constants to access config settings. 2022-04-07 13:02:28 +02:00
StubGlobalUser.php
StubObject.php Use updated ObjectFactory namespace 2022-03-09 23:04:51 +00:00
StubUserLang.php
TemplateParser.php Fix many typos in comments 2022-05-10 12:46:11 +00:00
TemplatesOnThisPageFormatter.php TemplatesOnThisPageFormatter: Use PageIdentity 2022-05-23 19:38:40 +02:00
Title.php Update documentation of Title::getDbPageLanguageCode 2022-09-01 15:49:21 +00:00
TitleArray.php
TitleArrayFromResult.php Get rid of warnings on PHP 8.1 2022-06-13 04:42:20 -04:00
TitleFactory.php Hard deprecate TitleFactory::newFromIDs and Title::newFromIDs 2021-11-29 14:23:26 -05:00
TrackingCategories.php Add {{=}} as a built-in magic word 2022-05-20 13:08:20 -04:00
WebRequest.php Support CDN query parameter re-ordering 2022-08-09 01:53:38 +00:00
WebRequestUpload.php
WebResponse.php Use name constants to access config settings. 2022-04-07 13:02:28 +02:00
WebStart.php Setup.php: Remove internal use of $IP 2022-05-13 16:32:09 +00:00
WikiMap.php Fix many typos in comments 2022-05-10 12:46:11 +00:00
WikiReference.php Remove or replace usages of "sane" 2021-11-22 13:35:17 +00:00