mirror of
https://github.com/Fishwaldo/huginn.git
synced 2025-03-15 19:31:26 +00:00
date_add for mysql correction
This commit is contained in:
parent
b0d64c4735
commit
3d33881897
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ module RDBMSFunctions
|
|||
adapter_type = connection.adapter_name.downcase.to_sym
|
||||
case adapter_type
|
||||
when :mysql
|
||||
"DATE_ADD(`#{source}`, INTERVAL #{unit} #{AMOUNT})"
|
||||
"DATE_ADD(`#{source}`, INTERVAL #{amount} #{unit})"
|
||||
when :postgresql
|
||||
"(#{source} + INTERVAL '#{amount} #{unit}')"
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue