Closed (fixed)
Project:
Taxonomy access user
Version:
6.x-0.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Feb 2010 at 04:50 UTC
Updated:
19 Sep 2011 at 15:36 UTC
Jump to comment: Most recent file
Comments
Comment #1
mparker17You get this SELECT error when the module tries to use a database function that doesn't exist. These database functions are supposed to be created when the module is installed, but if you're running MySQL 5.0.3 or later, they will fail in most circumstances.
--
The module tries to create four MySQL functions when it is installed:
grant_view,grant_update,grant_deleteandgrant_admin. In order to do this, the database-user that Drupal is connecting with needs theCREATE ROUTINEprivilege (which may not be available on certain shared hosting environments).Additionally, if the database-user that Drupal is connecting with does not have the
SUPERprivilege (which will probably not be available on most shared hosting environments), these functions will still fail, because users without theSUPERprivilege need to stateDEFINER = CURRENT_USERwhen creating the function in MySQL 5.0.3 and later (i.e.:CREATE DEFINER = CURRENT_USER FUNCTION grant_admin (atid INT, auid INT) RETURNS ...).I've attached a patch to add the
DEFINER = CURRENT_USERclause to theCREATE FUNCTIONqueries. Hopefully this will allow the module to install properly on your site.--
IMHO, considering that the Drupal database requirements state that users should only need the
SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,INDEXandALTERprivileges (and some old modules may requireCREATE TEMPORARY TABLESandLOCK TABLES), and considering that Drupal is supposed to work on both PostgreSQL and MySQL, it would be better to convert these functions into code, even if that makes things run a bit slower.--
Update: since the Great Git Migration, creating and applying patches is a bit different. Check out the Git Patch Contributor Guide.
Comment #2
driki_ commentedHello,
We will be posting soon an update of this version that fixes this bug.
Thanks for your reply and patch.
Comment #3
superbaloo commentedFixed by 408e4d2
Thanks !
Comment #4
diaxpro commentedHi, i have this problem, i need update module, not uninstall and install, how i can make this?
Comment #5
fab971 commentedI add the same issue on my website.
1- i deactivated the module
2- Uninstalled it
3- i rebuilt the rights on nodes
4- Gave my mysql user 'grant' rights
5- Re-installed the module
6- Rebuilt the rights on nodes
That seems to work right now
Thank you very mutch for your help!
Mysql: 5.1.41
Ubuntu server 4.5
Php 5.3.2