go-gorm / sharding

High performance table sharding plugin for Gorm.
MIT License
275 stars 60 forks source link

where条件中使用表名时无法解析sharding key字段 #174

Closed zhaoli2014 closed 2 months ago

zhaoli2014 commented 2 months ago

global_id为sharding key, 无法解析 sql

select * from `user` where `user`.global_id=?

image

此处代码应该缺少QualifiedRef类型的判断

zhaoli2014 commented 2 months ago

https://github.com/go-gorm/sharding/pull/167 已经解决了