From a1442d4e3e614bae7aa449c47ba0d20bd2ebde72 Mon Sep 17 00:00:00 2001 From: skodak Date: Fri, 28 Nov 2008 09:16:24 +0000 Subject: [PATCH] MDL-17436 fixed pg issue with char <> num comparison --- lib/db/upgradelib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/db/upgradelib.php b/lib/db/upgradelib.php index 0c5686c25e..e054542ba2 100644 --- a/lib/db/upgradelib.php +++ b/lib/db/upgradelib.php @@ -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 -- 2.39.5