Closed (fixed)
Project:
Drupal core
Component:
database system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 May 2004 at 11:34 UTC
Updated:
20 May 2004 at 21:21 UTC
Jump to comment: Most recent file
adrian's "support for multiple database connections" patch from 2004/04/30 moves
$db_type = substr($db_url, 0, strpos($db_url, "://"));
out of the global scope, which makes it unavailable for updates.inc, which causes updates to fail because postgresql sql is executed for mysql databases (and the other way round). the obvisous fix is to declare $db_type global:
function db_set_active($name = 'default') {
- global $db_url;
- global $active_db;
+ global $db_url, $db_type, $active_db;
static $db_conns;
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | database.inc.patch | 609 bytes | ax |
Comments
Comment #1
marky commentedsee also http://drupal.org/node/view/7491
Comment #2
ax commentedsetting critical and attaching patch
Comment #3
dries commentedCommitted to HEAD. Thanks Ax.
Comment #4
(not verified) commented