Open a631807682 opened 2 years ago
related to https://github.com/go-gorm/gorm/pull/5301 will not panic in next gorm version test will pass when https://github.com/go-gorm/sharding/pull/34 merged.
Any Update?, Support for the sqlparser.QualifiedRef feature is quite needed
What did this pull request do?
When we use
db.Preload
, it will generate sql with alias like:The expr parsed by sql is
sqlparser.QualifiedRef
which is not supported and will returnErrMissingShardingKey
This feat will replace sql like this:User Case Description