• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

it seem have a little question at SecurityCommon -> loadRoles()

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
it seem have a little question

SecurityCommon -> loadRoles() ->

/*
sql = SELECT r.role_id, r.name, rv.role_value, rv.role_type AS rv_type, r.role_type \
FROM jforum_roles r, jforum_role_values rv \
WHERE rv.role_id(+) = r.role_id AND r.group_id = ? \
ORDER BY r.role_id
*/

p = JForumExecutionContext.getConnection().prepareStatement(sql);

Role r = null;
String lastName = null;

rs = p.executeQuery(); // there is err !
while (rs.next()) {
...
}

before here : rs = p.executeQuery(); not set r.group_id !!!

when i debug here show err !!

[originally posted on jforum.net by jyhcyd]
 
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
This has been fixed. Thanks for reporting..

Rafael
[originally posted on jforum.net by Rafael Steil]
 
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
thanks!! Rafael Steil
[originally posted on jforum.net by jyhcyd]
 
I've been selected to go to the moon! All thanks to this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic