]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-17436 fixed pg issue with char <> num comparison
authorskodak <skodak>
Fri, 28 Nov 2008 09:16:24 +0000 (09:16 +0000)
committerskodak <skodak>
Fri, 28 Nov 2008 09:16:24 +0000 (09:16 +0000)
lib/db/upgradelib.php

index 0c5686c25e71c821c37d7a5ffac6cb4362ce837f..e054542ba2cf69758f2bd756c67069b87d910c8e 100644 (file)
@@ -171,9 +171,9 @@ function upgrade_migrate_files_blog() {
 
     $fs = get_file_storage();
 
-    $count = $DB->count_records_select('post', "module='blog' AND attachment IS NOT NULL AND attachment <> 1");
+    $count = $DB->count_records_select('post', "module='blog' AND attachment IS NOT NULL AND attachment <> '1'");
 
-    if ($rs = $DB->get_recordset_select('post', "module='blog' AND attachment IS NOT NULL AND attachment <> 1")) {
+    if ($rs = $DB->get_recordset_select('post', "module='blog' AND attachment IS NOT NULL AND attachment <> '1'")) {
 
         upgrade_set_timeout(60*20); // set up timeout, may also abort execution