Merge pull request #3074 from owncloud/sqlite3-raiseerror

Fix raiseError call in the MDB2 sqlite3 driver
remotes/origin/stable6
Bernhard Posselt 2013-04-22 14:34:09 +07:00
commit edd37c779d
1 changed files with 2 additions and 2 deletions

@ -892,10 +892,10 @@ class MDB2_Driver_sqlite3 extends MDB2_Driver_Common
$connection = $this->getConnection();
if (PEAR::isError($connection)) {
return $connection;
}
}
$statement =$this->connection->prepare($query);
if (!$statement) {
return $this->db->raiseError(MDB2_ERROR_NOT_FOUND, null, null,
return $this->raiseError(MDB2_ERROR_NOT_FOUND, null, null,
'unable to prepare statement: '.$query);
}