Fix splitread database usage in VFS (Bug #9467).
authorJan Schneider <jan@horde.org>
Wed, 12 Jan 2011 11:31:33 +0000 (12:31 +0100)
committerJan Schneider <jan@horde.org>
Wed, 12 Jan 2011 11:31:42 +0000 (12:31 +0100)
framework/VFS/lib/VFS/sql.php
horde/docs/CHANGES

index 1c11634..8efa697 100644 (file)
@@ -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);
     }
 
     /**
index 9338588..ab15d75 100644 (file)
@@ -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).