yxb-git opened a new issue #6924:
URL: https://github.com/apache/shardingsphere/issues/6924
Hello,
I use sharding-proxy to directly link proxy database.
In the same transaction, query and update access different databases.
Example:
tx := apiDB.Begin()
var user TabUser
tx.Where("id = ?", 1).First(&user)
tx.Model(&user).Where("id = ?",
1).Updates(map[string]interface{}{"age": 0})
tx.Commit()
Is there any problem with my approach,
Thanks
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]