]> source.dussan.org Git - nextcloud-server.git/commitdiff
Move parameter to the right function call
authorJoas Schilling <nickvergessen@owncloud.com>
Tue, 26 Jan 2016 11:15:18 +0000 (12:15 +0100)
committerJoas Schilling <nickvergessen@owncloud.com>
Tue, 26 Jan 2016 13:56:07 +0000 (14:56 +0100)
lib/private/db/connection.php

index db5c66501b820d6687e5b7b7d59e014ebcd08bea..82b52bbc9d7c25f07acb06f4c99d003fea5823da 100644 (file)
@@ -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);