Description
Hello Team,
In1.25.6
, this work without issue
query := db.
Where("Hash = ? AND expires_at > CURRENT_TIMESTAMP", MakeTokenHash(token)).
Take(&foundToken)
In1.25.7
, it cease to work with error being
Query 'SELECT * FROM "auth_tokens" WHERE Hash = $1 AND expires_at > CURRENT_TIMESTAMP LIMIT $2', arguments do not match: expected 1, but got 2 arguments
diff in go.mod proving that only gorm changed
gorm.io/gorm v1.25.5 -> gorm.io/gorm v1.25.7
diff go.sum
gorm.io/gorm v1.25.5 h1:zR9lOiiYf09VNh5Q1gphfyia1JpiClIWG9hQaxB/mls= -> gorm.io/gorm v1.25.7 h1:VsD6acwRjz2zFxGO50gPO6AkNs7KKnvfzUjHQhZDz/A=
gorm.io/gorm v1.25.5/go.mod h1:hbnx/Oo0ChWMn1BIhpy1oYozzpM15i4YPuHDmfYtwg8= -> gorm.io/gorm v1.25.7/go.mod h1:hbnx/Oo0ChWMn1BIhpy1oYozzpM15i4YPuHDmfYtwg8=
Comment From: github-actions[bot]
The issue has been automatically marked as stale as it missing playground pull request link, which is important to help others understand your issue effectively and make sure the issue hasn't been fixed on latest master, checkout https://github.com/go-gorm/playground for details. it will be closed in 30 days if no further activity occurs. if you are asking question, please use the Question
template, most likely your question already answered https://github.com/go-gorm/gorm/issues or described in the document https://gorm.io ✨ Search Before Asking ✨