wiki.techinc.nl/includes/search
Aaron Schulz 4659cbcccc rdbms: fix table prefixing in "FOR UPDATE" clause generation in Postgres
Make SqlPlatform::tableNameWithAlias() include the unqualified table
name as an alias if doing so is not redundant. This assures that the
default alias from JoinGroupBase::addJoin(), equal to the unqualified
table name, will be usable in SQL (regardless of table prefixes).

Clean up use of identifier quotes for sqlite_master tables. The called
methods expect unqualified names and a passthrough exception already
exists for sqlite_* tables.

Use "block_target.bt_user" directly in ApiQueryBlocks and BlockPager,
instead of using addIdentifierQuotes(). The "block_target" alias is
automatically added to the SQL by the rdbms layer when it's not clearly
redundant, so it is always safe to use block_target.bt_user. Also, there
is no reason for aliases to include quote characters. They are supposed
to be simple alphanumerics like column names. This makes it easy for
tableNameWithAlias() to avoid redundant aliases by checking tableName().

Avoid unneeded quotes around pg_catalog.* table names in the Postgres
installer. The relevant documentation of methods like selectField() is
that the table names be unqualified (no quotes nor dots), though dots
are still supported internally for compatibility reasons and ease of
querying schemas like pg_catalog and information_schema.

Change-Id: Ic7d7826da31f49915141692cb3bd84ed1e872e96
2025-06-24 22:33:30 +01:00
..
Entity
Hook Use explicit nullable type on parameter arguments 2024-10-16 20:58:33 +02:00
searchwidgets Treat File::getShortDesc() as possibly unsafe HTML 2025-06-04 21:18:13 +00:00
BaseSearchResultSet.php
DummySearchIndexFieldDefinition.php
FauxSearchResult.php Use explicit nullable type on parameter arguments 2024-10-16 20:58:33 +02:00
FauxSearchResultSet.php
ISearchResultSet.php
NullIndexField.php
PaginatingSearchEngine.php
ParserOutputSearchDataExtractor.php
PerRowAugmentor.php
PrefixSearch.php
ResultAugmentor.php
ResultSetAugmentor.php
RevisionSearchResult.php
RevisionSearchResultTrait.php Add namespace to IDBAccessObject and DBAccessObjectUtils 2024-09-27 16:19:10 -04:00
SearchDatabase.php
SearchEngine.php Use namespaced classes 2024-10-21 20:41:20 +02:00
SearchEngineConfig.php Use namespaced classes 2024-10-21 20:41:20 +02:00
SearchEngineDummy.php
SearchEngineFactory.php
SearchExactMatchRescorer.php
SearchHighlighter.php search: Add missing documentation to class properties 2024-09-07 21:56:00 +02:00
SearchIndexField.php
SearchIndexFieldDefinition.php
SearchMySQL.php Remove the hyphen as a legal search character for MySQL 2025-05-28 10:21:06 +00:00
SearchNearMatchResultSet.php
SearchPostgres.php
SearchResult.php Use explicit nullable type on parameter arguments 2024-10-16 20:58:33 +02:00
SearchResultSet.php search: Add missing documentation to class properties 2024-09-07 21:56:00 +02:00
SearchResultSetTrait.php
SearchResultThumbnailProvider.php Use explicit nullable type on parameter arguments 2024-10-16 20:58:33 +02:00
SearchResultTrait.php
SearchSqlite.php rdbms: fix table prefixing in "FOR UPDATE" clause generation in Postgres 2025-06-24 22:33:30 +01:00
SearchSuggestion.php Use explicit nullable type on parameter arguments 2024-10-16 20:58:33 +02:00
SearchSuggestionSet.php
SqlSearchResult.php
SqlSearchResultSet.php
StringPrefixSearch.php
TitleMatcher.php Remove meaningless @var documentation from constants 2024-10-09 09:33:12 +02:00
TitlePrefixSearch.php