mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
one if less
This commit is contained in:
parent
1b97c186b4
commit
45c897acf3
1 changed files with 2 additions and 5 deletions
|
|
@ -326,6 +326,7 @@ class OC_DB {
|
|||
* @param string $query Query string
|
||||
* @param int $limit
|
||||
* @param int $offset
|
||||
* @param bool $isManipulation
|
||||
* @return MDB2_Statement_Common prepared SQL query
|
||||
*
|
||||
* SQL query via MDB2 prepare(), needs to be execute()'d!
|
||||
|
|
@ -393,11 +394,7 @@ class OC_DB {
|
|||
throw new DatabaseException($e->getMessage(), $query);
|
||||
}
|
||||
// differentiate between query and manipulation
|
||||
if ($isManipulation) {
|
||||
$result=new PDOStatementWrapper($result, true);
|
||||
} else {
|
||||
$result=new PDOStatementWrapper($result, false);
|
||||
}
|
||||
$result = new PDOStatementWrapper($result, $isManipulation);
|
||||
}
|
||||
if ((is_null($limit) || $limit == -1) and self::$cachingEnabled ) {
|
||||
$type = OC_Config::getValue( "dbtype", "sqlite" );
|
||||
|
|
|
|||
Loading…
Reference in a new issue