Closed
Description
GORM Playground Link
Description
I'm using this:
var hours float64
var seconds int
// ...
result := dbPG.Where("created_at < NOW() - INTERVAL '? hours' OR updated_at < NOW() - INTERVAL '? seconds'", hours, seconds).Delete(&tweet)
The query created is:
DELETE FROM "tweets" WHERE created_at < NOW() - INTERVAL '720.000000 hours' OR updated_at < NOW() - INTERVAL '10 seconds'
The error is:
DBG C:/pkg/tweet/main.go:10 expected 0 arguments, got 2
Why?
What I have to use instead?