Skip to content
Snippets Groups Projects
Commit fa4e68b2 authored by Andreas Fernandez's avatar Andreas Fernandez Committed by Jigal van Hemert
Browse files

[BUGFIX] Run scheduler from cli fails on DBAL

With activated DBAL, dispatching the scheduler from cli
currently fails. The SqlParser can't handle brackets
in an ON-clause, so remove them in the query.

Resolves: #57246
Releases: 6.2
Change-Id: I2efa92392d22c854dae925da9a2396ef08bae198
Reviewed-on: https://review.typo3.org/28805
Reviewed-by: Jigal van Hemert
Tested-by: Jigal van Hemert
parent 0fbca208
Branches
Tags
No related merge requests found
......@@ -263,7 +263,7 @@ class Scheduler implements \TYPO3\CMS\Core\SingletonInterface {
if (empty($uid)) {
$queryArray = array(
'SELECT' => 'tx_scheduler_task.uid AS uid, serialized_task_object',
'FROM' => 'tx_scheduler_task LEFT JOIN tx_scheduler_task_group ON (tx_scheduler_task.task_group = tx_scheduler_task_group.uid)',
'FROM' => 'tx_scheduler_task LEFT JOIN tx_scheduler_task_group ON tx_scheduler_task.task_group = tx_scheduler_task_group.uid',
'WHERE' => 'disable = 0 AND nextexecution != 0 AND nextexecution <= ' . $GLOBALS['EXEC_TIME'] . ' AND (tx_scheduler_task_group.hidden = 0 OR tx_scheduler_task_group.hidden IS NULL)',
'LIMIT' => 1
);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment