• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

SQL error, generic_queries.sql 1.105

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
mysql 4.1.13 is reporting an SQL error on
ForumModel.getModeratorList during startup.

The SQL in question is:

ForumModel.getModeratorList = SELECT DISTINCT u.user_id, u.username, rv.role_value \
FROM jforum_roles r, jforum_role_values rv, jforum_users u, jforum_user_groups ug, jforum_users u2, jforum_roles r2 \
WHERE r.role_id = rv.role_id \
AND r.name = 'perm_moderation_forums' \
AND rv.role_type = 1 \
AND rv.role_value = ? \
AND r.group_id = ug.group_id \
AND ug.user_id = u.user_id \
AND u.user_id = u2.user_id \
AND r2.name = 'perm_moderation' \
AND r2.role_type = 1 \
AND r2.group_id = ug.group_id \
UNION ( SELECT u.user_id, username, rv.role_value \
FROM jforum_roles r, jforum_role_values rv, jforum_users u \
WHERE r.role_id = rv.role_id \
AND name = 'perm_moderation_forums' \
AND rv.role_type = 1 \
AND rv.role_value = ? \
AND r.user_id = u.user_id )
[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You probably have parenteses () missed around first select.
[originally posted on jforum.net by Anonymous]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic