项目依赖从以下版本:

gorm.io/driver/mysql v1.0.4
gorm.io/gorm v1.20.12

升级到以下版本:

gorm.io/driver/mysql v1.3.3
gorm.io/gorm v1.23.6

之后,Table("tablename t1") 这种写法,必须要Table("tablename AS t1"),才能生效且代码没有报任何异常,只在调用的时候结果有问题时发现,该更新未在官方网站的迭代记录中找到,希望官方能有发布提醒,或者破坏性更新直接返回异常,防止这样更新影响线上

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