]> source.dussan.org Git - nextcloud-server.git/commitdiff
Revert "Make sure MySQL is not saying 'this' = 'this ' is true" 20509/head
authorRoeland Jago Douma <rullzer@users.noreply.github.com>
Wed, 15 Apr 2020 21:49:16 +0000 (23:49 +0200)
committerGitHub <noreply@github.com>
Wed, 15 Apr 2020 21:49:16 +0000 (23:49 +0200)
lib/private/DB/QueryBuilder/ExpressionBuilder/MySqlExpressionBuilder.php
lib/private/User/Manager.php

index 3b81f11c4dc5bb735d4095f0556053121d8ad9a4..899f9277439305dbd2938118f561e6b98b494940 100644 (file)
@@ -52,12 +52,4 @@ class MySqlExpressionBuilder extends ExpressionBuilder {
                $y = $this->helper->quoteColumnName($y);
                return $this->expressionBuilder->comparison($x, ' COLLATE ' . $this->charset . '_general_ci LIKE', $y);
        }
-
-       public function eq($x, $y, $type = null) {
-               return 'BINARY ' . parent::eq($x, $y, $type);
-       }
-
-       public function neq($x, $y, $type = null) {
-               return 'BINARY ' . parent::neq($x, $y, $type);
-       }
 }
index e55d439519197d5299a63a873170fccafabb49b1..303050a7716f3a03f95496dca723eb9fe6c6f34a 100644 (file)
@@ -188,7 +188,7 @@ class Manager extends PublicEmitter implements IUserManager {
         */
        public function userExists($uid) {
                $user = $this->get($uid);
-               return $user !== null && $user->getUID() === $uid;
+               return ($user !== null);
        }
 
        /**