Open a631807682 opened 2 months ago
https://gorm.io/docs/advanced_query.html#Group-Conditions
Since it is not safe to reuse a db instance, group conditions will generate duplicate where conditions when used in scope.
refer to https://github.com/go-gorm/gorm/issues/6148#issuecomment-1469401048 close https://github.com/go-gorm/gorm/issues/7136
What did this pull request do?
https://gorm.io/docs/advanced_query.html#Group-Conditions
Since it is not safe to reuse a db instance, group conditions will generate duplicate where conditions when used in scope.
User Case Description
refer to https://github.com/go-gorm/gorm/issues/6148#issuecomment-1469401048 close https://github.com/go-gorm/gorm/issues/7136