-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix _fromTables() #2174
Fix _fromTables() #2174
Conversation
When there are JOINs and more than one table exists, the FROM clause must be enclosed in parentheses, otherwise an error occurs if a JOIN does not refer to the last table.
@lonnieezell This looks good to me, and nothing seems missing. Should this be merged? |
@pjsde A couple of quick questions:
|
@lonnieezell You are right, this change should not be in BaseBuilder, but in the database engines, as it is not valid on all database engines, being only valid for MySQL. |
Can anyone explain to me why despite the merge is done, the changes are not reflected in the develop branch, because if we consult the history of the file https://github.com/codeigniter4/CodeIgniter4/commits/develop/system/Database/MySQLi/Builder.php we can see that the last commit was made in May 4, 2019 by @jim-parry |
This is a mystery to me. |
I have no idea. There was a change to MySQLi/Connection 17 days ago, but everything else was 5 months ago. I guess make a new PR? This part seems out of our control and in GitHub's hands. |
I will check some of the other commits around the same time and see what else might have gone astray. |
Ok. I'll make a new PR then. |
The commits before & after this one check out, i.e. the commits look right and the changes are in effect. |
When there are JOINs and more than one table exists, the FROM clause must be enclosed in parentheses, otherwise an error occurs if a JOIN does not refer to the last table.
Checklist: