Skip to content
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

support MySQL and PostgreSQL extended DELETE syntax #228

Closed
wants to merge 2 commits into from

Conversation

ccutrer
Copy link

@ccutrer ccutrer commented Dec 12, 2013

note that this also adds support for limit on all adapters by doing a subquery (just like update)

ccutrer added a commit to ccutrer/rails that referenced this pull request Dec 12, 2013
also do joins natively for mysql

both require rails/arel#228
@jeremy
Copy link
Member

jeremy commented Dec 12, 2013

Seeing partial test coverage for the new delete case. There are more behavior changes here, though. Could you expand to full coverage?

@ccutrer
Copy link
Author

ccutrer commented Dec 16, 2013

@jeremy I added additional test coverage.

@ccutrer
Copy link
Author

ccutrer commented Jan 10, 2014

any update on this? do you want the commits squashed together?

@tamird
Copy link

tamird commented Sep 16, 2014

@ccutrer needs a rebase

@ccutrer
Copy link
Author

ccutrer commented Sep 16, 2014

@tamird rebased and changed code to match newer code style (using collector in visitors, and compile method in test - which passes a collector)

@tamird
Copy link

tamird commented Sep 16, 2014

probably needs a review from @tenderlove


def initialize relation = nil, wheres = []
super
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you mean to remove the call to super?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not. probably got confused in the conflicts when I rebased

@tamird
Copy link

tamird commented Feb 24, 2015

@ccutrer #356 was just merged, can you rebase?

@tamird
Copy link

tamird commented Feb 26, 2015

@ccutrer can you squash the relevant parts of the last commit into the other two? the changes look good to me, @rafaelfranca can you please triage?

ccutrer and others added 2 commits February 26, 2015 15:13
this also fixes the general case by using a subselect rather than a
direct limit (which is not standard SQL)
@ccutrer
Copy link
Author

ccutrer commented Feb 26, 2015

@tamird - squashed down to two commits.

@tamird
Copy link

tamird commented Feb 26, 2015

would love to see this get in 👍 cc @tenderlove

@tenderlove
Copy link
Member

LGTM, but @sgrif can you review?

@matthewd
Copy link
Member

Per #523, Arel development is moving to rails/rails.

If this PR is still relevant, please consider reopening it over there.

@matthewd matthewd closed this Apr 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

5 participants