swoft-cloud / swoft

🚀 PHP Microservice Full Coroutine Framework
https://swoft.org
Apache License 2.0
5.58k stars 788 forks source link

Swoft\Db\Query\Builder::fromSub别名参数bug #1446

Open zwyao314 opened 3 years ago

zwyao314 commented 3 years ago
Q A
Bug report? yes/no
Feature request? yes/no
Swoft version x.y.z (by php bin/swoft -V)
Swoole version x.y.z (by php --ri swoole)
PHP version x.y.z (by php -v)
Runtime environment Win10/Mac/CentOS 7/Ubuntu/Docker etc.

Describe the bug A clear and concise description of what the bug is. 调用Swoft\Db\Query\Builder::fromSub方法并传递第二个参数(别名)时需要添加表前缀,正常应该不需要加表前缀 Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Details

Describe what you are trying to achieve and what goes wrong.

// paste output here

Provide minimal script to reproduce the issue

// paste code