mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 07:56:06 +02:00
MDL-17436 fixed pg issue with char <> num comparison
This commit is contained in:
parent
f63d6374a1
commit
a1442d4e3e
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user