diff options
author | Melanie | 2010-10-18 22:58:04 +0100 |
---|---|---|
committer | Melanie | 2010-10-18 22:58:04 +0100 |
commit | ce3594f7f2b5a4af2d92d6b2c812f7241c61e82b (patch) | |
tree | fe1f4630318f4771310c48b0c252b667d34031ec | |
parent | Fix merge issues (diff) | |
download | opensim-SC_OLD-ce3594f7f2b5a4af2d92d6b2c812f7241c61e82b.zip opensim-SC_OLD-ce3594f7f2b5a4af2d92d6b2c812f7241c61e82b.tar.gz opensim-SC_OLD-ce3594f7f2b5a4af2d92d6b2c812f7241c61e82b.tar.bz2 opensim-SC_OLD-ce3594f7f2b5a4af2d92d6b2c812f7241c61e82b.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>(); |