Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix deleting from joined datasets on MySQL
While here, no longer include joins in delete_from_sql by default. Since all of the adapters that support modifying joins override it, there's no reason to include it. Also, remove the order on the joined dataset in the integration test so that updating works on MySQL (which allows order clauses in update statements, but not when multiple tables are used). Note that MySQL allows deleting from multiple tables at once, but Sequel doesn't support this. Sequel assumes the first table in FROM is the one being deleted from, and the rest are just for selecting rows. This is for consistency with how Sequel works on PostgreSQL and MSSQL.
- Loading branch information
1 parent
77c0483
commit 883aebd
Showing
4 changed files
with
14 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters