MDL-33330 /lib/db/upgrade.php: fix stray semicolon
authorDan Poltawski <dan@moodle.com>
Wed, 6 Jun 2012 08:25:20 +0000 (16:25 +0800)
committerDan Poltawski <dan@moodle.com>
Wed, 6 Jun 2012 08:25:20 +0000 (16:25 +0800)
Breaking Oracle upgrade

lib/db/upgrade.php

index f303a26..f0c8ba1 100644 (file)
@@ -799,7 +799,7 @@ function xmldb_main_upgrade($oldversion) {
         $sql = "SELECT repositoryid, referencehash, MIN(id) AS minid
                   FROM {files_reference}
               GROUP BY repositoryid, referencehash
-                HAVING COUNT(*) > 1;";
+                HAVING COUNT(*) > 1";
         $duprs = $DB->get_recordset_sql($sql);
         foreach ($duprs as $duprec) {
             // get the list of all ids in {files_reference} that need to be remapped