[support] using two different database type

Pierre Rineau pierre.rineau at makina-corpus.com
Wed Jul 30 08:33:43 UTC 2008


You MUST use two same database type.

Explaination is simple, since Drupal files with pgsql support and mysql
support declare the same function's names inside, it's just impossible
to go through this situation.

Using OO it could be possible, but Drupal is not OO.

On mer, 2008-07-30 at 10:04 +0200, Ámon Tamás wrote:
> Hello,
> 
> I like to use two database, a postgresql and a mysqli in my module. My 
> settings.php looks like this:
> 
> $db_url['default'] = 'mysqli://user:pass@localhost:3370/allathletics';
> $db_url['atleta'] = 'pgsql://user:pass@192.168.2.104/cds_atletabackup';
> 
> But when I try the
> 
> db_set_active('atleta');
> 
> I get the
> 
> Fatal error: Cannot redeclare db_status_report() (previously declared in 
> /var/www/mysite/includes/database.mysqli.inc:23) in 
> /var/www/demo.internetstudio.hu/allathletics/web/includes/database.pgsql.inc 
> on line 33
> 
> Is there a solution for it, or I must to use two same database type?
> 
> Ámon Tamás
> Sitefejlesztő és programozó
> -- 
> 5NET Informatikai Kft.
> 1062 Budapest, Aradi utca 38. A 3/11
> telefon: (1) 461-0205  |  fax: (1) 461-0206
> e-mail: amont at 5net.hu  |  web: http://www.5net.hu 
> 



More information about the support mailing list