User tests: Successful: Unsuccessful:
Pull Request for Issue # .
JDatabaseQuery: Add support to multiple-table deletion with Join of the delete() function.
$query->delete('a, b')->from('#__a AS a')->leftJoin('#__b AS b ON a.id = b.id')->where('a.id = 1');
DELETE a, b FROM #__a AS a LEFT JOIN #__b AS b ON a.id = b.id WHERE a.id = 1;
DELETE a, b FROM #__a AS a LEFT JOIN #__b AS b ON a.id = b.id WHERE a.id = 1;
Added the following usage instruction:
Other Usage (Added to support multiple-delete using join):
$query->delete('a, b')->from('#__a AS a')->leftJoin('#__b AS b ON a.id = b.id')->where('a.id = 1');
Output Query:
DELETE a, b FROM #__a AS a LEFT JOIN #__b AS b ON a.id = b.id WHERE a.id = 1;
Category | ⇒ | Administration com_admin com_categories com_contact com_content com_finder com_menus com_modules com_newsfeeds Language & Strings Modules Front End com_search |
Status | New | ⇒ | Pending |
I am closing this at this time. Please resubmit your pr to the staging branch
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-08-30 08:05:40 |
Closed_By | ⇒ | brianteeman | |
Labels |
Added:
?
?
|
I guess you messed up your branch. Also please give the pull request a proper title.