Download & Extend

install ignores system-wide table prefix

Project:Path Access
Version:5.x-1.1
Component:Code
Category:bug report
Priority:critical
Assigned:budda
Status:closed (fixed)

Issue Summary

My install of Drupal uses a table prefix, which path_access_install() ignores. Instead of creating a table called myprefix_path_access it just created path_access, which lead to "Table drupal.myprefix_path_access doesn't exist"-errors.

I'm not into programming, but in comparison to other modules, i changed line 10 of path_access.install from

         db_query("CREATE TABLE `path_access` (    

to
         db_query("CREATE TABLE if not exists {path_access} (    

(I found the additional if not exists in other install-routines and think it is a good idea to check whether the table already exists or not bevor trying to create it.)

With that change the install went as expected.

Once I have figured out how to create a patch-file I'm gonna add it.

Comments

#1

Assigned to:Anonymous» budda

Thanks for the notice. Don't know how that slipped through ;-)

No need for a patch file, i can amend the code based on your comments fine. Cheers!

#2

Status:active» fixed

Fixed in CVS dev.

#3

Status:fixed» closed (fixed)
nobody click here