58 if ( $dqe->errno == 1064 ) {
61 "Query incompatible with database engine. For more information: " .
62 "https://bugs.mysql.com/bug.php?id=78485 https://jira.mariadb.org/browse/MDEV-21750 / " .
63 "https://phabricator.wikimedia.org/T355096",
64 1064, $dqe->sql, __METHOD__
91 return trim( preg_replace(
"/[^{$lc}]/",
" ", $text ) );
102 if ( $queryAndNs ===
false ) {
105 $this->namespaces = $queryAndNs[1];
106 return $queryAndNs[0];
109 protected function regexTerm(
string $string, ?
string $wildcard =
null ): string {
110 $regex = preg_quote( $string,
'/' );
116 $regex =
"\b$regex\b";
128class_alias( SearchDatabase::class,
'SearchDatabase' );