diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2013-12-20 14:55:46 +0100 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2013-12-20 14:55:46 +0100 |
commit | f3a779a298a7a344ae56889eda8b6673994a61f0 (patch) | |
tree | 8bd1c810c121e3a6160e07b54f874b5014962086 /sonar-core/src/main | |
parent | 19cee84a75036d31a973f8d1a49c39b1f782fac7 (diff) | |
download | sonarqube-f3a779a298a7a344ae56889eda8b6673994a61f0.tar.gz sonarqube-f3a779a298a7a344ae56889eda8b6673994a61f0.zip |
replace SQL in () by or in UserMapper
Diffstat (limited to 'sonar-core/src/main')
-rw-r--r-- | sonar-core/src/main/resources/org/sonar/core/user/UserMapper.xml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sonar-core/src/main/resources/org/sonar/core/user/UserMapper.xml b/sonar-core/src/main/resources/org/sonar/core/user/UserMapper.xml index f0368bf8bab..3b9c25b8f8d 100644 --- a/sonar-core/src/main/resources/org/sonar/core/user/UserMapper.xml +++ b/sonar-core/src/main/resources/org/sonar/core/user/UserMapper.xml @@ -28,10 +28,10 @@ <select id="selectUsersByLogins" parameterType="map" resultType="User"> SELECT <include refid="userColumns"/> - FROM users u WHERE u.login IN - <foreach item="login" index="index" collection="logins" open="(" separator="," close=")"> - #{login} - </foreach> + FROM users u WHERE + (<foreach item="login" index="index" collection="logins" open="(" separator=" or " close=")"> + u.login=#{login} + </foreach>) </select> <select id="selectUsers" parameterType="map" resultType="User"> |