Skip to content
Snippets Groups Projects
Commit edd37c77 authored by Bernhard Posselt's avatar Bernhard Posselt
Browse files

Merge pull request #3074 from owncloud/sqlite3-raiseerror

Fix raiseError call in the MDB2 sqlite3 driver
parents 4af4a5bd 7c1a4d2f
No related branches found
No related tags found
No related merge requests found
...@@ -892,10 +892,10 @@ class MDB2_Driver_sqlite3 extends MDB2_Driver_Common ...@@ -892,10 +892,10 @@ class MDB2_Driver_sqlite3 extends MDB2_Driver_Common
$connection = $this->getConnection(); $connection = $this->getConnection();
if (PEAR::isError($connection)) { if (PEAR::isError($connection)) {
return $connection; return $connection;
} }
$statement =$this->connection->prepare($query); $statement =$this->connection->prepare($query);
if (!$statement) { 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); 'unable to prepare statement: '.$query);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment