Fixed HAVING using an alias
authorAlexander Ebert <ebert@woltlab.com>
Thu, 29 Dec 2016 12:31:35 +0000 (13:31 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 29 Dec 2016 12:46:07 +0000 (13:46 +0100)
wcfsetup/install/files/acp/update_com.woltlab.wcf_3.0.0_rc_3.php

index d3445ac0d89433c19d184b7a5d3b4c9c189fcc0e..472b6e597f71ac4d1c79a33856b8af724f4412f8 100644 (file)
@@ -40,7 +40,7 @@ $sql = "SELECT          COUNT(*) AS count, pageID
        FROM            wcf".WCF_N."_page_content
        WHERE           languageID IS NULL
        GROUP BY        pageID
-       HAVING          count > 1";
+       HAVING          COUNT(*) > 1";
 $statement = WCF::getDB()->prepareStatement($sql);
 $statement->execute();
 while ($row = $statement->fetchArray()) {
@@ -59,7 +59,7 @@ $sql = "SELECT          COUNT(*) AS count, boxID
        FROM            wcf".WCF_N."_box_content
        WHERE           languageID IS NULL
        GROUP BY        boxID
-       HAVING          count > 1";
+       HAVING          COUNT(*) > 1";
 $statement = WCF::getDB()->prepareStatement($sql);
 $statement->execute();
 while ($row = $statement->fetchArray()) {