aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMelanie2010-10-18 22:58:04 +0100
committerMelanie2010-10-18 22:59:00 +0100
commit7de30cc57b5f9ad895e865736550c8d7a433ce55 (patch)
tree399f17639b1739b72ce2dfcffcea4469e4857f5e
parentAlphabetize results on region search by prefix matching (diff)
downloadopensim-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.
Diffstat (limited to '')
-rw-r--r--OpenSim/Services/GridService/GridService.cs2
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>();