Table Prefix Inoperability

omadasite - January 3, 2009 - 19:06
Project:GeoUser
Version:6.x-1.7-beta2
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:needs review
Description

When drupal configuration is set to use table prefixes, the module does not query tables correctly.

Problem: Table names are hard coded.

Recommended Solution: Add Drupal module prefix to include default table prefixes.

#1

frankcarey - February 2, 2009 - 23:11
Version:6.x-1.7-beta1» 6.x-1.7-beta2
Status:active» needs review

Changed all references to tables in db_query() from 'my_table' to '{my_table}' to comply with drupal's database prefixing option.

I only saw 2 files that needed to be changed
- geouser.module
- geouser.inc

Separate patches were made for each file against 7.7-beta

AttachmentSize
geouser_inc_db_prefix.patch 752 bytes
geouser_module_db_prefix.patch 1.08 KB
 
 

Drupal is a registered trademark of Dries Buytaert.