fix mySQL error
This commit is contained in:
parent
1f701cb5e2
commit
954e18922e
1 changed files with 2 additions and 0 deletions
|
@ -111,6 +111,8 @@ module Gitlab
|
|||
end
|
||||
|
||||
def extract_epoch(arel_attribute)
|
||||
return arel_attribute unless Gitlab::Database.postgresql?
|
||||
|
||||
Arel.sql(%Q{EXTRACT(EPOCH FROM (#{arel_attribute.to_sql}))})
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue