Closed (fixed)
Project:
Custom reports
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 Aug 2010 at 10:38 UTC
Updated:
23 Sep 2010 at 15:50 UTC
I'd like to use another db for some reports. My proposed solution is to support queries like: "USE db_name; SELECT * FROM table;". A diff for the recent dev version which does this is attached.
| Comment | File | Size | Author |
|---|---|---|---|
| db_set_active.diff | 797 bytes | Jakob Stoeck |
Comments
Comment #1
Jakob Stoeck commentedComment #2
hicham7 commentedHello
what about using another database from another database server like postgresql for instance ?
Comment #3
a_c_m commentedJust committed this to 1.x should be in the -dev version in a few hours.
@hicham7 it wont care what DB it is using http://api.drupal.org/api/function/db_set_active/6 which means it /should/ support any DB you can declare in settings.php then its up to you to make sure you use SQL that database can support.
Comment #4
hicham7 commentedbut according to this link http://drupal.org/node/18429
it's not possible to set up multiple databases connections of different types mysql and postgresql
in "settings.php".
Comment #5
a_c_m commented@hicham7 - thats correct, but thats an issue with the db layer in drupal not this module, sorry.