mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 22:05:36 +08:00
* Fixed bug in avatarpicker so now you can search on single word
[Provided by openlifegrid.com]
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user