Closed (fixed)
Project:
COPPA
Version:
5.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Jul 2008 at 02:15 UTC
Updated:
6 Aug 2008 at 07:12 UTC
Great module, thank you!
Visiting the Managing Relationships page produced the error. I'm investigating this and will report back in a bit.
user warning: Unknown column 'c.cid' in 'on clause' query: SELECT cu.uid as cid, cu.name as cname, pu.uid as pid, pu.name as pname, pv.value as dob, c.status FROM users cu, coppa c, users pu LEFT JOIN profile_values pv ON pv.uid = c.cid LEFT JOIN profile_fields pf ON pv.fid = pf.fid WHERE cu.uid = c.cid AND pu.uid = c.pid in /var/www/includes/database.mysql.inc on line 172.
Comments
Comment #1
jgraham commentedcan you report back what version of MySQL you have?
Comment #2
jgraham commentedchristefano,
Do you have table prefixes? I was missing some curly braces around the table names for that query. Try the 1.1 release and let me know if the issue is resolve.
Comment #3
christefano commentedThanks for working through these bugs and putting out the 1.1 release!
Updating to 5.x-1.1 didn't fix it. I have MySQL 5.0.32 and this particular site isn't using any table prefixing.
Comment #4
jgraham commentedGot it, its due to changes in the join processing. Looking into a solution, should just need some well placed parentheses on that query.
http://dev.mysql.com/doc/refman/5.0/en/join.html
Join Processing Changes in MySQL 5.0.12
Looks like I'm overdue for an update on my dev box :-/
Comment #5
jgraham commentedwas able to reproduce on MySQL 5.0.45.
I have created a development branch release as I realized there are a couple outstanding issues that should get into the next release.
Comment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.