]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-22340 Fix SSF-584
authorPeter Horvath <peter.horvath@sonarsource.com>
Wed, 5 Jun 2024 07:49:52 +0000 (09:49 +0200)
committersonartech <sonartech@sonarsource.com>
Wed, 5 Jun 2024 20:02:46 +0000 (20:02 +0000)
server/sonar-db-dao/src/main/resources/org/sonar/db/user/UserGroupMapper.xml

index 85961adcd0d6887c4f7427f32fa0922ac8e93ee7..bf0e0ff5f4e6a4b822b3a6a552c94e4c5b3359bc 100644 (file)
      <where>
         1=1
         <if test="query.uuid != null">
-            AND gu.uuid='${query.uuid}'
+            AND gu.uuid=#{query.uuid, jdbcType=VARCHAR}
         </if>
         <if test="query.userUuid != null">
-            AND gu.user_uuid='${query.userUuid}'
+            AND gu.user_uuid=#{query.userUuid, jdbcType=VARCHAR}
         </if>
         <if test="query.groupUuid != null">
-            AND gu.group_uuid='${query.groupUuid}'
+            AND gu.group_uuid=#{query.groupUuid, jdbcType=VARCHAR}
         </if>
     </where>
   </sql>