mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 06:56:05 +00:00
fixes TIMESTAMPDIFF_MONTH error for postgresql (#3369)
This commit is contained in:
committed by
GitHub
parent
c398ab0a40
commit
673370b9a5
@@ -333,7 +333,7 @@ class PostgresqlQueryComposer extends BaseQueryComposer
|
||||
return "EXTRACT(YEAR FROM $to - $from)";
|
||||
|
||||
case 'TIMESTAMPDIFF_MONTH':
|
||||
return "EXTRACT(MONTH FROM $to) - $from)";
|
||||
return "EXTRACT(MONTH FROM $to - $from)";
|
||||
|
||||
case 'TIMESTAMPDIFF_WEEK':
|
||||
return "FLOOR(EXTRACT(DAY FROM $to - $from) / 7)";
|
||||
|
||||
Reference in New Issue
Block a user