-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
使用表全名关联的JOIN解析不正确 #339
Labels
Comments
这个异常是数据库抛出来的吧。Unknown column 'playplayer_id' in 'on clause' |
好的,亮哥,今天晚些时候我调试一下。 亮哥已经提交了新的调试信息,发现应该是sql改写的bug |
fixed at 1.5.2 |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Please answer these questions before submitting your issue. Thanks!
Which version of Sharding-Jdbc do you using?
1.5.1
Expected behavior
92sql语法规范
@select("SELECT play.id as id, play.name as name, video_image.url as coverUrl , video_image.width as width, video_image.height as height FROM play left join video_image on play.cover_id = video_image.id WHERE play.id = #{id}")
得到列表结果
Actual behavior
Steps to reproduce the behavior
执行单元测试,输入id,解析出这个错误异常并没有这个字段。Unknown column 'playplayer_id' in 'on clause'
Please provide the reproduce example codes (such as github link) if possible.
@select("SELECT play.id as id, play.name as name, video_image.url as coverUrl , video_image.width as width, video_image.height as height FROM play left join video_image on play.cover_id = video_image.id WHERE play.id = #{id}")
VideoPlayDto getVideoPlay(@param("id") Long id);
使用另外一种89sql语法规范就可以了。
8-19更新:
已经打开show.sql
The text was updated successfully, but these errors were encountered: