]> git.mjollnir.org Git - moodle.git/commitdiff
installation MDL-19984 fix SQL error during upgrade process
authorjerome <jerome>
Mon, 3 Aug 2009 04:02:39 +0000 (04:02 +0000)
committerjerome <jerome>
Mon, 3 Aug 2009 04:02:39 +0000 (04:02 +0000)
lib/db/upgrade.php

index 0534cc6585702f11055ae215655007ff1522e32a..2def886abfb8588f7479dda945086d1569f1d108 100644 (file)
@@ -2441,7 +2441,7 @@ WHERE gradeitemid IS NOT NULL AND grademax IS NOT NULL");
             // Find a category to put the courses in:
             $categories = $DB->get_records_sql('SELECT * ' .
                     'FROM {course_categories} ' .
-                    'WHERE name ilike \'misc%\' ' .
+                    'WHERE name like \'misc%\' ' .
                     'ORDER BY id asc');
             if (!empty($categories)) {
                 $category = array_shift($categories);