Page 1 of 1

SQL Error on installation

Posted: 05 Jun 2005, 12:44
by simonj
Hi ppl. I have just installed Mantis 1.0.0a3, and receive the following SQL error when I log in.

Code: Select all

Database query failed. Error received from database was #1064: You have an error in your SQL syntax near 'on cft.id = cfpt.field_id
JOIN mantis_project_table as pt on' at line 3 for the query: SELECT distinct cft.id as id, cft.name as name
FROM mantis_custom_field_table as cft
JOIN mantis_custom_field_project_table as cfpt on cft.id = cfpt.field_id
JOIN mantis_project_table as pt on cfpt.project_id = pt.id
LEFT JOIN mantis_project_user_list_table as pult
on cfpt.project_id = pult.project_id and pult.user_id = 2
JOIN mantis_user_table as ut on ut.id = 2
WHERE pt.view_state = 10 OR
( pt.view_state = 50 and pult.user_id = 2 ) OR
( pult.user_id is null and ut.access_level >= 90 )
ORDER BY name ASC

I have applied bugfix 5696 from latest CVS head with no joy

Posted: 05 Jun 2005, 13:11
by Guest
I have applied bugfix 5696 from latest CVS head with no joy

RESOLVED - applied patch to 1.53

Posted: 05 Jun 2005, 13:45
by simonj
After applying a patch to revision 1.54 of custom_field_api.php the error persisted. I then patched to version 1.53 after reading bug notes and this resolved the problem. It was the issue with mysql 3.23 not supporting JOIN x ON y syntax. Thanks ppl, quality product which we have been happily running since version 0.18.3 :-) keep up the good work!