Closed (duplicate)
Project:
Permissions API
Version:
6.x-2.11
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Dec 2011 at 14:24 UTC
Updated:
14 Dec 2011 at 14:29 UTC
On my installation of mySQL (5.5.18) the simple sql creating role is not working.
In the code it is:
db_query("INSERT INTO {role} VALUES('', '%s')", $role_name);
However Drupal (actually mySQL) complains about the first argument being ''. I would change it to:
db_query("INSERT INTO {role}(name) VALUES('%s')", $role_name);
which seems more "standard" and corrects the error.
Comments
Comment #1
pkaczynski commentedSorry, this is a duplicate of #1238116: INSERT INTO statement in permissions_create_role() not working. When's it going to be in release? The last one was over a year ago!