]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-2443 Improve DB request to potentially fix IT pbm on Oracle
authorFabrice Bellingard <bellingard@gmail.com>
Wed, 25 May 2011 08:24:29 +0000 (10:24 +0200)
committerFabrice Bellingard <bellingard@gmail.com>
Wed, 25 May 2011 08:25:34 +0000 (10:25 +0200)
sonar-server/src/main/webapp/WEB-INF/app/controllers/users_controller.rb

index fb82342a0a64a66ff295bee88faae516363b7937..fa7672b617fa67709b33d33676b5f248abce081f 100644 (file)
@@ -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