summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-01-26 12:15:18 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2016-01-26 14:56:07 +0100
commit01164e89a4fb18d45b63bc33236cf979fabaafd8 (patch)
tree428c50a3a3283bbeee3bc28eedd119a1fe69fc41 /lib
parent76f506e264473feec5534fa7aa8c2c33ef8ddb23 (diff)
downloadnextcloud-server-01164e89a4fb18d45b63bc33236cf979fabaafd8.tar.gz
nextcloud-server-01164e89a4fb18d45b63bc33236cf979fabaafd8.zip
Move parameter to the right function call
Diffstat (limited to 'lib')
-rw-r--r--lib/private/db/connection.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/private/db/connection.php b/lib/private/db/connection.php
index db5c66501b8..82b52bbc9d7 100644
--- a/lib/private/db/connection.php
+++ b/lib/private/db/connection.php
@@ -29,7 +29,6 @@ use Doctrine\DBAL\Driver;
use Doctrine\DBAL\Configuration;
use Doctrine\DBAL\Cache\QueryCacheProfile;
use Doctrine\Common\EventManager;
-use OC\DB\QueryBuilder\ExpressionBuilder;
use OC\DB\QueryBuilder\QueryBuilder;
use OCP\DB\QueryBuilder\IQueryBuilder;
use OCP\IDBConnection;
@@ -279,7 +278,7 @@ class Connection extends \Doctrine\DBAL\Connection implements IDBConnection {
$updateQb = $this->getQueryBuilder();
$updateQb->update($table);
foreach ($values as $name => $value) {
- $updateQb->set($name, $updateQb->createNamedParameter($value), $this->getType($value));
+ $updateQb->set($name, $updateQb->createNamedParameter($value, $this->getType($value)));
}
$where = $updateQb->expr()->andx();
$whereValues = array_merge($keys, $updatePreconditionValues);