https://bugzilla.wikimedia.org/show_bug.cgi?id=42601

       Web browser: ---
             Bug #: 42601
           Summary: deleteOldRevisions.php: SQL syntax error: "WHERE
                    page_id IN ()"
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: easy
          Severity: trivial
          Priority: Unprioritized
         Component: Maintenance scripts
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified
   Mobile Platform: ---


Nothing critical, but if deleteOldRevisions.php finds nothing, it errors in a
SQL syntax error because an empty IN() is not allowed.

Maybe it's better to fix this in Database.php, not sure.


Limiting to `mw_page`.page_id IN ()
Searching for active revisions...A database error has occurred.  Did you forget
to run maintenance/update.php after upgrading?  See:
https://www.mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script
Query: SELECT page_latest FROM `mw_page` WHERE page_id IN ()
Function: 
Error: 1064 You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near ')'
at line 1 (localhost)

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to