* Fixed bug in avatarpicker so now you can search on single word

[Provided by openlifegrid.com]
ThreadPoolClientBranch
lbsa71 2008-02-13 21:15:05 +00:00
parent 952cdd4166
commit 2c48ceedd8
1 changed files with 1 additions and 2 deletions

View File

@ -374,11 +374,10 @@ namespace OpenSim.Framework.Data.MSSQL
{
Dictionary<string, string> param = new Dictionary<string, string>();
param["first"] = querysplit[0];
param["second"] = querysplit[1];
IDbCommand result =
database.Query(
"SELECT UUID,username,surname FROM " + m_usersTableName + " WHERE username = @first OR lastname = @second",
"SELECT UUID,username,surname FROM " + m_usersTableName + " WHERE username = @first OR lastname = @first",
param);
IDataReader reader = result.ExecuteReader();