gen
gen copied to clipboard
GEN Can't generate correct time-related SQL
GORM Playground Link
https://github.com/go-gorm/playground/pull/706
Description
When I use GEN to update the time like this, it generates incorrect SQL.
It seems GEN will only adapt MySQL time function(i.e. DATE_ADD),
even the driver used is sqlite (shoud be datetime(updated_at, '+1 second')
)or postgresql (should be updated_at + interval 1 second
).