]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix clob comparison
authorJoas Schilling <coding@schilljs.com>
Fri, 21 Jul 2017 12:44:35 +0000 (14:44 +0200)
committerJoas Schilling <coding@schilljs.com>
Thu, 3 Aug 2017 14:39:41 +0000 (16:39 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
lib/private/Authentication/Token/DefaultTokenMapper.php

index 44bc553a92e0688141f916539fd36e334d4167d5..2038bb5a13513b4d1f4a6c7f4ccb61bdccc865e8 100644 (file)
@@ -157,7 +157,7 @@ class DefaultTokenMapper extends Mapper {
        public function deleteByName($name) {
                $qb = $this->db->getQueryBuilder();
                $qb->delete('authtoken')
-                       ->where($qb->expr()->eq('name', $qb->createNamedParameter($name)));
+                       ->where($qb->expr()->eq('name', $qb->createNamedParameter($name, IQueryBuilder::PARAM_LOB), IQueryBuilder::PARAM_LOB));
                $qb->execute();
        }