You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 ).
The text was updated successfully, but these errors were encountered:
GORM Playground Link
go-gorm/playground#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 beupdated_at + interval 1 second
).The text was updated successfully, but these errors were encountered: