Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: marky commentedsee also http://drupal.org/node/view/7491
Comment #2
ax CreditAttribution: ax commentedsetting critical and attaching patch
Comment #3
Dries CreditAttribution: Dries commentedCommitted to HEAD. Thanks Ax.
Comment #4
(not verified) CreditAttribution: commented