Gorm Use TableName to specify the database for the Create operation, but Create will ignore my database name

Description: I use 'Attach DATABASE' to attach the database err = db.Exec("ATTACH DATABASE '" + dsnInfo + "' AS info").Error So I want to use TableName to specify the database for the Create operation, but Create will ignore my database name I looked at the source code of Gorm and found that it was caused by the Table method dividing strings with decimal points How can I keep the database name

中文描述: 我使用来”ATTACH DATABASE“来附加数据库 err = db.Exec("ATTACH DATABASE '" + dsnInfo + "' AS info").Error 所以我想通过TableName来指定数据库来做Create操作, 但是Create会忽略我的数据库名 我看了Gorm的源码, 发现是Table方法以小数点来分割了字符串导致的 我应该怎么才能保留数据库名

Comment From: chengzixian

源码的具体位置 The specific location of the source code https://github.com/go-gorm/gorm/blob/e9637024d3780dba4de755e6f5879150f43e8390/chainable_api.go#L75

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: a631807682

The table name is specified by parse unless you specify it via .Table() (which you don't have in your code). It cannot be reproduced in the lastest version. If there is still a problem, please provide a reproduction link.