Skip to content

Commit

Permalink
Merge pull request #322 from PauloPeres/master
Browse files Browse the repository at this point in the history
Fixing Error on SQLSERVER related to Datediff
  • Loading branch information
dereuromark committed Mar 21, 2022
2 parents 43b4dd2 + 51c03bb commit d46358e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/Table/QueuedJobsTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ public function requestJob(array $tasks, array $groups = [], array $types = [])

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

break;
case static::DRIVER_SQLITE:
Expand Down

0 comments on commit d46358e

Please sign in to comment.