From: Jan Schneider Date: Wed, 12 Jan 2011 11:31:33 +0000 (+0100) Subject: Fix splitread database usage in VFS (Bug #9467). X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=76b6725d97341196296ca077d9773ca5ed4a8e45;p=horde.git Fix splitread database usage in VFS (Bug #9467). --- diff --git a/framework/VFS/lib/VFS/sql.php b/framework/VFS/lib/VFS/sql.php index 1c1163437..8efa69762 100644 --- a/framework/VFS/lib/VFS/sql.php +++ b/framework/VFS/lib/VFS/sql.php @@ -301,7 +301,7 @@ class VFS_sql extends VFS (!strlen($path) && $this->_db->dbsyntax == 'oci8') ? ' IS NULL' : ' = ' . $this->_db->quote($path)); $values = array(self::FILE, $name); $this->log($sql, PEAR_LOG_DEBUG); - $result = $this->_db->query($sql, $values); + $result = $this->_write_db->query($sql, $values); if ($this->_db->affectedRows() == 0) { throw new VFS_Exception('Unable to delete VFS file.'); @@ -383,7 +383,7 @@ class VFS_sql extends VFS $values = array($id, self::FOLDER, $this->_convertPath($path), $name, time(), $this->_params['user']); - return $this->_db->query($sql, $values); + return $this->_write_db->query($sql, $values); } /** diff --git a/horde/docs/CHANGES b/horde/docs/CHANGES index 9338588b9..ab15d756d 100644 --- a/horde/docs/CHANGES +++ b/horde/docs/CHANGES @@ -58,6 +58,7 @@ v4.0-cvs v3.3.12-cvs ----------- +[jan] Fix splitread database usage in VFS (Bug #9467). [jan] Fix invalidating permission cache in SQL driver (Bug #9392).