diff options
author | Melanie | 2010-10-18 22:58:04 +0100 |
---|---|---|
committer | Melanie | 2010-10-18 22:59:00 +0100 |
commit | 7de30cc57b5f9ad895e865736550c8d7a433ce55 (patch) | |
tree | 399f17639b1739b72ce2dfcffcea4469e4857f5e | |
parent | Alphabetize results on region search by prefix matching (diff) | |
download | opensim-SC_OLD-7de30cc57b5f9ad895e865736550c8d7a433ce55.zip opensim-SC_OLD-7de30cc57b5f9ad895e865736550c8d7a433ce55.tar.gz opensim-SC_OLD-7de30cc57b5f9ad895e865736550c8d7a433ce55.tar.bz2 opensim-SC_OLD-7de30cc57b5f9ad895e865736550c8d7a433ce55.tar.xz |
Change substring matching to prefix matching in region search. This affects
both map and login, as they use the same method.
-rw-r--r-- | OpenSim/Services/GridService/GridService.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Services/GridService/GridService.cs b/OpenSim/Services/GridService/GridService.cs index ce6f64b..e7988d6 100644 --- a/OpenSim/Services/GridService/GridService.cs +++ b/OpenSim/Services/GridService/GridService.cs | |||
@@ -323,7 +323,7 @@ namespace OpenSim.Services.GridService | |||
323 | { | 323 | { |
324 | m_log.DebugFormat("[GRID SERVICE]: GetRegionsByName {0}", name); | 324 | m_log.DebugFormat("[GRID SERVICE]: GetRegionsByName {0}", name); |
325 | 325 | ||
326 | List<RegionData> rdatas = m_Database.Get("%" + name + "%", scopeID); | 326 | List<RegionData> rdatas = m_Database.Get(name + "%", scopeID); |
327 | 327 | ||
328 | int count = 0; | 328 | int count = 0; |
329 | List<GridRegion> rinfos = new List<GridRegion>(); | 329 | List<GridRegion> rinfos = new List<GridRegion>(); |