diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-11-12 17:43:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-12 17:43:56 +0100 |
commit | fd8eeccb15e1219a2d18fc421e741c315737c55e (patch) | |
tree | 55b56592cf40ab4fcc605e45a95d13d79806eb91 /core | |
parent | 9e1ec0cf46055dbf08a139124d292eb38b8aebd2 (diff) | |
parent | bb352fb667e87ea0829f1da5f9e85c34bdefe9fa (diff) | |
download | nextcloud-server-fd8eeccb15e1219a2d18fc421e741c315737c55e.tar.gz nextcloud-server-fd8eeccb15e1219a2d18fc421e741c315737c55e.zip |
Merge pull request #11942 from nextcloud/techdebt/noid/use-count-function
Use the defined func()->count() instead of manual counting
Diffstat (limited to 'core')
-rw-r--r-- | core/Command/Db/ConvertType.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Command/Db/ConvertType.php b/core/Command/Db/ConvertType.php index b6c2c66b3d3..bd26c5e5154 100644 --- a/core/Command/Db/ConvertType.php +++ b/core/Command/Db/ConvertType.php @@ -301,7 +301,7 @@ class ConvertType extends Command implements CompletionAwareInterface { $query = $fromDB->getQueryBuilder(); $query->automaticTablePrefix(false); - $query->selectAlias($query->createFunction('COUNT(*)'), 'num_entries') + $query->select($query->func()->count('*', 'num_entries')) ->from($table->getName()); $result = $query->execute(); $count = $result->fetchColumn(); |