Fix SQLite database plugin for UserAccountData queries with a single word.

0.7.0.2-release
Marck 2010-08-15 21:08:37 +02:00 committed by Diva Canto
parent 50a88ed2e4
commit c1a20c8567
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ namespace OpenSim.Data.SQLite
if (words.Length == 1)
{
cmd.CommandText = String.Format("select * from {0} where ScopeID='{1}' or ScopeID='00000000-0000-0000-0000-000000000000') and (FirstName like '{2}%' or LastName like '{2}%')",
cmd.CommandText = String.Format("select * from {0} where (ScopeID='{1}' or ScopeID='00000000-0000-0000-0000-000000000000') and (FirstName like '{2}%' or LastName like '{2}%')",
m_Realm, scopeID.ToString(), words[0]);
}
else