diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2016-02-22 15:41:21 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2016-02-22 15:43:20 +0100 |
commit | 24c7f38a0046a96c43da7953df5833571c6bd1ed (patch) | |
tree | 900d1913027096fa851cc19ca693750ce89d8330 /lib | |
parent | 6f29949bcaef690a93d7ecfb5cde8fa08ce36db7 (diff) | |
download | nextcloud-server-24c7f38a0046a96c43da7953df5833571c6bd1ed.tar.gz nextcloud-server-24c7f38a0046a96c43da7953df5833571c6bd1ed.zip |
Make sure we can store strings as per the interface
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/systemtag/systemtagobjectmapper.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/systemtag/systemtagobjectmapper.php b/lib/private/systemtag/systemtagobjectmapper.php index 1efb4f0f6e0..754184102a9 100644 --- a/lib/private/systemtag/systemtagobjectmapper.php +++ b/lib/private/systemtag/systemtagobjectmapper.php @@ -103,7 +103,7 @@ class SystemTagObjectMapper implements ISystemTagObjectMapper { $this->assertTagsExist($tagIds); $query = $this->connection->getQueryBuilder(); - $query->select($query->createFunction('DISTINCT(`objectid`)')) + $query->selectDistinct('objectid') ->from(self::RELATION_TABLE) ->where($query->expr()->in('systemtagid', $query->createParameter('tagids'))) ->andWhere($query->expr()->eq('objecttype', $query->createParameter('objecttype'))) @@ -208,7 +208,7 @@ class SystemTagObjectMapper implements ISystemTagObjectMapper { ->where($query->expr()->in('objectid', $query->createParameter('objectids'))) ->andWhere($query->expr()->eq('objecttype', $query->createParameter('objecttype'))) ->andWhere($query->expr()->eq('systemtagid', $query->createParameter('tagid'))) - ->setParameter('objectids', $objIds, IQueryBuilder::PARAM_INT_ARRAY) + ->setParameter('objectids', $objIds, IQueryBuilder::PARAM_STR_ARRAY) ->setParameter('tagid', $tagId) ->setParameter('objecttype', $objectType); |