Closed (fixed)
Project:
Content Complete
Version:
6.x-1.4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Oct 2009 at 08:11 UTC
Updated:
23 Oct 2011 at 10:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
pvhee commentedComment #3
sinasquax commentedI still have the problem, i corrected it by using this kind of query for deleting :
DELETE c FROM {content_complete} c INNER JOIN {node} n ON c.nid = n.nid WHERE n.type = '%s'
(Removed USING and put the name of deleting table before the FROM statement)
Comment #4
sinasquax commentedComment #5
pvhee commentedI've committed this, thanks.
Note that the correct syntax is DELETE FROM and not DELETE c FROM (see http://dev.mysql.com/doc/refman/5.0/en/delete.html)
Comment #6
sinasquax commentedI don't think that using DELETE FROM work with INNER JOIN, taken from your link :
Comment #7
pvhee commentedThanks for looking into this. Could you make a tested patch for the latest dev snapshot and I'll commit?
Comment #8
sinasquax commentedComment #10
benoit.borrel commentedusing 6.x-1.4 and encountered the bug
proper single-table SQL syntax should be:
Comment #11
pvhee commentedThis is committed now, thanks!