Skip to content

Commit d46358e

Browse files
authored
Merge pull request #322 from PauloPeres/master
Fixing Error on SQLSERVER related to Datediff
2 parents 43b4dd2 + 51c03bb commit d46358e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Model/Table/QueuedJobsTable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ public function requestJob(array $tasks, array $groups = [], array $types = [])
583583

584584
break;
585585
case static::DRIVER_SQLSERVER:
586-
$tmp["DATEDIFF(s, '1970-01-01 00:00:00', GETDATE()) >="] = $this->rateHistory[$tmp['job_task']] + $task['rate'];
586+
$tmp["(DATEDIFF(s, '1970-01-01 00:00:00', GETDATE())) >="] = $this->rateHistory[$tmp['job_task']] + $task['rate'];
587587

588588
break;
589589
case static::DRIVER_SQLITE:

0 commit comments

Comments
 (0)