This content has been marked as final.
Show 2 replies
-
1. Re: DatabaseServerLoginModule SQL failure: Column Index out
blackers Jun 23, 2004 11:24 PM (in response to pnevado)your roles query is supposed to return two columns not one as your SQL statement is suggesting.
The first table column should be the Role and the second the RoleGroup,
from your query<module-option name="rolesQuery">select id_servicio from vivoen.registro where id_usuario=? AND id_website=1 AND (fecha_fin >= NOW() OR fecha_fin IS NULL)</module-option>
I assume that id_servicio is the role, but you are not asking for a RoleGroup. From what I have found the Value for RoleGroup should be "Roles" so you could try.<module-option name="rolesQuery">select id_servicio 'Role', "Roles" AS RoleGroup from vivoen.registro where id_usuario=? AND id_website=1 AND (fecha_fin >= NOW() OR fecha_fin IS NULL)</module-option>
Hope this helps
Mat -
2. Re: DatabaseServerLoginModule SQL failure: Column Index out
pnevado Jun 25, 2004 9:21 AM (in response to pnevado)Thanks.
It works now, just adding the code you suggested.
Regards.