easy-swoole / easyswoole

swoole,easyswoole,swoole framework
https://www.easyswoole.com/
Apache License 2.0
4.74k stars 511 forks source link

orm join 出来的SQL 缺少on #493

Closed zhoufei666 closed 3 years ago

zhoufei666 commented 3 years ago

1.使用ORM 联表查询 2.在joinCondition 里面 and 其它条件,生成的sql 中,缺少 联表 的字符“on” 3.如果手动在joinCondition 里面 拼接 字符 “”on“”,生成的SQL就正确了 附上我的代码信息: image image 格式化的SQL image

我个人认为,即便是joinCondition后跟其它条件,也应该自动生成带on的SQL 不知是设计如此 还是隐形bug

XueSiLf commented 3 years ago

好的,感谢反馈,这边稍后处理下

XueSiLf commented 3 years ago

请提供一下相关表结构。

kiss291323003 commented 3 years ago

亲,有表结构吗

XueSiLf commented 3 years ago

该bug已经处理,且发布新版本了。https://github.com/easy-swoole/mysqli/releases/tag/2.2.9