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
Get all tests passing on MySQL and PostgreSQL on Rails 6.0.0 #496
Conversation
Can someone check the tests for the other supported databases? |
CI is failing but appears due to a config issue: says it can't connect to MySQL through the socket. |
Still getting some errors in my app's test suite. Not sure if they're related to CPK or not, yet. Will report back when I find out. |
One error is related to a count query. Prior upgrade, it would |
The major error in my tests is due to |
I have not looked into the one related to the count yet, but given that it is a count on a table with CPK and the column names do not include the table name, I think it probably is an issue with CPK. The one related to |
This is important because any joins to tables with the same columns would produce ambiguous column names
@cfis I think this might be ready for a review, if you'd just like to double check me. The remaining issue in my app's test suite is that includes/references gets moved and further joins reference columns that aren't part of the query yet, but I am starting to think that is an issue with Rails itself, and I've been working around it by just calling |
Looks ok to me. Doesn't look like CPK overrides any of the methods changed in rails/rails#36805. Would it be possible to add a test case for the includes/references issue? |
I hope to get around to it. I still need to see if I can get it to work correctly in Rails without CPK. I thought I did, but when I ran what I thought was the same scenario in another Rails project, it actually just removed the includes/references altogether, so that's what makes me think it would be Rails at fault rather than CPK. Still need to do that research. |
@cfis I confirmed the includes/references + join problem is an issue in Rails with this script, and reported to Rails: rails/rails#37133 |
Got it - thanks for reporting. |
Fixes #495 and includes changes from #492