db_prefix not used for table creation

AxelBernhardt - July 30, 2006 - 12:50
Project:G2 Glossary
Version:4.7.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

As I use a db_prefix definition in my settings.php like this:

<?php

$db_prefix
= array(
     
'default'   => 'xyz_',
     
'locales_meta'     => 'shared_',
     
'locales_source'  => 'shared_',
     
'locales_target'      => 'shared_' );
?>

the creation of the tables should ad the prefix xyz_ to the new g2-tables in the installation process.

Might be easy to fix.

Perhaps one should consider, wether there is more than one site configured in this drupl installation. But I dont know wether this is a problem.

Best,
Axel

#1

fgm - July 30, 2006 - 19:33
Status:active» needs review

Not sure whether this works or not, but you might want to try replacing
$sq = 'CREATE TABLE `g2_referer` ' by
$sq = 'CREATE TABLE {g2_referer} '

and replacing

$sq = 'CREATE TABLE `g2_node` ' by
$sq = 'CREATE TABLE {g2_node} '

I've attached a patch for this. Could you test it and report how it goes ?

AttachmentSize
g2.install.patch 2.21 KB

#2

fgm - August 12, 2006 - 20:30
Status:needs review» fixed

Version 1.15.2.7 now includes this patch.

#3

Anonymous - August 26, 2006 - 20:45
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.