diff --git a/includes/FindEventPagesQuery.php b/includes/FindEventPagesQuery.php index f3c52bf..a99ac52 100644 --- a/includes/FindEventPagesQuery.php +++ b/includes/FindEventPagesQuery.php @@ -109,7 +109,8 @@ public function setTitleRegex( $regex ) { return; } - $this->where[] = 'page_title RLIKE ' . $this->dbr->addQuotes( $regex ); + $rlike = $this->dbr->getType() === 'postgres' ? '~' : 'RLIKE'; + $this->where[] = "page_title $rlike " . $this->dbr->addQuotes( $regex ); } /**