Active
Project:
Flag content
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Jul 2008 at 11:22 UTC
Updated:
26 Feb 2009 at 14:36 UTC
There is a mistake in the query of deleting comments and users in function function flag_content_comment and function flag_content_user, the mistake is wrong use of apostrophe around %s
the solution is changing the apostrophe into inverted commas
the correct query is: 'DELETE FROM {flag_content} WHERE eid = %d AND type = "%s"'
Comments
Comment #1
kbahey commentedThis is the correct SQL delimiter for char type. There is no problem with using '%s' at all.
Are you using PostgreSQL? What error are you getting that makes you think this is a problem.
Comment #2
morbus iffThe query is incorrect because it's using "eid" and not "fid".
Comment #3
morbus iffActually, I'm not really sure what's going on.
Your .install file uses fid and eid. Your DELETEs use eid.
But the generated table I get is:
Comment #4
morbus iffThis appears to be caused by Flag and Flag Content being installed at the same time.