FirstOrCreate RowsAffected

Description

https://github.com/go-gorm/gorm/issues/4996 has fix, but gorm@v1.23.4 still exists.

demo

        user := User{
        Id:      id,
        CreateTime:   timeNow,
    }

    result := db.FirstOrCreate(&user, &User{
            Id:  id,
    })
        if db.Error != nil {
        return db.Error
    }

    logrus.Debugf("find or create user RowsAffected = %d, result = %v", result.RowsAffected, result)

log

find or create user RowsAffected = 1, result = &{0xc0005c4ea0 <nil> 1 0xc00d018c40 0}

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

Comment From: AzraelJi

https://github.com/go-gorm/gorm/pull/5250,fix: FirstOrCreate RowsAffected,请问这个bug在哪个版本已经被merge修复了?查看了v1.24.6仍然未修复