Posted by guidot on August 26, 2007 at 2:07pm
Jump to:
| 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
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
Fixed in CVS dev.
#3