mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 06:56:05 +00:00
Fix PG timestamp. Use typcast.
This commit is contained in:
@@ -174,7 +174,7 @@ class PostgresqlQueryComposer extends BaseQueryComposer
|
||||
if ($function === 'UNIX_TIMESTAMP') {
|
||||
$arg = $argumentPartList[0] ?? 'NOW()';
|
||||
|
||||
return "FLOOR(EXTRACT(EPOCH FROM $arg))";
|
||||
return "FLOOR(EXTRACT(EPOCH FROM $arg::timestamp))";
|
||||
}
|
||||
|
||||
if ($function === 'BINARY') {
|
||||
|
||||
Reference in New Issue
Block a user