aboutsummaryrefslogtreecommitdiffstats
path: root/maintenance/attachLatest.php
diff options
context:
space:
mode:
authorUmherirrender <umherirrender_de.wp@web.de>2023-12-12 22:16:32 +0100
committerUmherirrender <umherirrender_de.wp@web.de>2023-12-12 22:16:32 +0100
commit4b555ad4d96bd4f88bac14830a84766669a6c4ab (patch)
tree60935f97a97fdd43626d50d3c462e80a89d0c4fe /maintenance/attachLatest.php
parent25b80bcaa716a87db2212eeec09ada9fe1eb1b94 (diff)
downloadmediawikicore-4b555ad4d96bd4f88bac14830a84766669a6c4ab.tar.gz
mediawikicore-4b555ad4d96bd4f88bac14830a84766669a6c4ab.zip
maintenance: Add missing parenthesis to SQL in attachLatest.php
Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'FROM `revision` WHERE rev_page = 42 LIMIT 1' at line 1 Function: AttachLatest::execute Query: SELECT MAX(rev_timestamp FROM `revision` WHERE rev_page = 42 LIMIT 1 Follow-Up: Idfe83b900de3fbc6a251a5a78d8af1a4cd88970f Change-Id: Ibdb4bdc68f10f87c53ae648674c1c1729e2ba2b2
Diffstat (limited to 'maintenance/attachLatest.php')
-rw-r--r--maintenance/attachLatest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/maintenance/attachLatest.php b/maintenance/attachLatest.php
index 187c11392eb9..de4940a3aacb 100644
--- a/maintenance/attachLatest.php
+++ b/maintenance/attachLatest.php
@@ -69,7 +69,7 @@ class AttachLatest extends Maintenance {
$title = Title::makeTitle( $row->page_namespace, $row->page_title );
$name = $title->getPrefixedText();
$latestTime = $dbw->newSelectQueryBuilder()
- ->select( 'MAX(rev_timestamp' )
+ ->select( 'MAX(rev_timestamp)' )
->from( 'revision' )
->where( [ 'rev_page' => $pageId ] )
->caller( __METHOD__ )