diff options
author | Marck | 2010-08-15 21:08:37 +0200 |
---|---|---|
committer | Diva Canto | 2010-08-15 17:27:06 -0700 |
commit | 30d0bf42071bf07f3f2ad30aa75126436e9360ae (patch) | |
tree | 7f081b520fa2e34b9eb7fbae1f282233a7520307 /OpenSim/Data/SQLite/SQLiteUserAccountData.cs | |
parent | Thanks Marck for the patch to mantis #4941 (shortening avies' names on HG) (diff) | |
download | opensim-SC_OLD-30d0bf42071bf07f3f2ad30aa75126436e9360ae.zip opensim-SC_OLD-30d0bf42071bf07f3f2ad30aa75126436e9360ae.tar.gz opensim-SC_OLD-30d0bf42071bf07f3f2ad30aa75126436e9360ae.tar.bz2 opensim-SC_OLD-30d0bf42071bf07f3f2ad30aa75126436e9360ae.tar.xz |
Fix SQLite database plugin for UserAccountData queries with a single word.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/SQLite/SQLiteUserAccountData.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Data/SQLite/SQLiteUserAccountData.cs b/OpenSim/Data/SQLite/SQLiteUserAccountData.cs index 893f105..2706aea 100644 --- a/OpenSim/Data/SQLite/SQLiteUserAccountData.cs +++ b/OpenSim/Data/SQLite/SQLiteUserAccountData.cs | |||
@@ -66,7 +66,7 @@ namespace OpenSim.Data.SQLite | |||
66 | 66 | ||
67 | if (words.Length == 1) | 67 | if (words.Length == 1) |
68 | { | 68 | { |
69 | 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}%')", | 69 | 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}%')", |
70 | m_Realm, scopeID.ToString(), words[0]); | 70 | m_Realm, scopeID.ToString(), words[0]); |
71 | } | 71 | } |
72 | else | 72 | else |