diff options
author | Fabrice Bellingard <bellingard@gmail.com> | 2011-05-25 10:24:29 +0200 |
---|---|---|
committer | Fabrice Bellingard <bellingard@gmail.com> | 2011-05-25 10:25:34 +0200 |
commit | 56110eef176a1e70ea7978b278f6d37b7718fbbf (patch) | |
tree | fb9f06bf29a23f5045a5d2e43fd4125b51eb6cb0 | |
parent | 6c3cabc19361b698b69b5f54f1c6bc0147f9f92e (diff) | |
download | sonarqube-56110eef176a1e70ea7978b278f6d37b7718fbbf.tar.gz sonarqube-56110eef176a1e70ea7978b278f6d37b7718fbbf.zip |
SONAR-2443 Improve DB request to potentially fix IT pbm on Oracle
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/controllers/users_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/users_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/users_controller.rb index fb82342a0a6..fa7672b617f 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/users_controller.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/users_controller.rb @@ -131,7 +131,7 @@ class UsersController < ApplicationController end def autocomplete - @users = User.find(:all, :conditions => ["UPPER(name) like UPPER(?)", params[:user_name_start]+"%"]) + @users = User.find(:all, :conditions => ["UPPER(name) like ?", params[:user_name_start].clone.upcase+"%"]) @char_count = params[:user_name_start].size render :partial => 'autocomplete' end |