Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RowsAffected Always 0 #3139

Closed
MarcoBeer opened this issue Jul 12, 2020 · 3 comments
Closed

RowsAffected Always 0 #3139

MarcoBeer opened this issue Jul 12, 2020 · 3 comments
Assignees
Labels

Comments

@MarcoBeer
Copy link

GORM Playground Link

go-gorm/playground#1

Description

数据表更新成功,但是RowsAffected 返回值永远是0
fmt.Println(db.Table(orderTable).Where(updateWhere).Updates(updateValue).RowsAffected) // always 0

@github-actions github-actions bot added the type:missing reproduction steps missing reproduction steps label Jul 12, 2020
@github-actions
Copy link

This issue has been automatically marked as stale as it missing playground pull request link, checkout https://github.com/go-gorm/playground for details, it will be closed in 2 days if no further activity occurs.

@MarcoBeer
Copy link
Author

大家是怎么解决这个问题的?

@github-actions
Copy link

This issue has been automatically marked as stale as it missing playground pull request link, checkout https://github.com/go-gorm/playground for details, it will be closed in 2 days if no further activity occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants