MDL-74283 dml: replace hardcoded concat SQL with appropriate API.

This commit is contained in:
Paul Holden
2022-03-22 17:33:03 +00:00
parent 34ce1463cc
commit 4102ae35a4
2 changed files with 16 additions and 16 deletions
+2 -2
View File
@@ -986,7 +986,7 @@ class manager {
$params = ['now1' => time(), 'now2' => time()];
$sql = "SELECT subquery.*
FROM (SELECT concat('s', ts.id) as uniqueid,
FROM (SELECT " . $DB->sql_concat("'s'", 'ts.id') . " as uniqueid,
ts.id,
'scheduled' as type,
ts.classname,
@@ -997,7 +997,7 @@ class manager {
FROM {task_scheduled} ts
WHERE ts.timestarted IS NOT NULL
UNION ALL
SELECT concat('a', ta.id) as uniqueid,
SELECT " . $DB->sql_concat("'a'", 'ta.id') . " as uniqueid,
ta.id,
'adhoc' as type,
ta.classname,