[mapguide-commits] r5490 - trunk/MgDev/Common/PlatformBase/MapLayer

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Mon Jan 10 02:00:57 EST 2011


Author: christinebao
Date: 2011-01-09 23:00:57 -0800 (Sun, 09 Jan 2011)
New Revision: 5490

Modified:
   trunk/MgDev/Common/PlatformBase/MapLayer/SelectionBase.cpp
Log:
Fix ticket http://trac.osgeo.org/mapguide/ticket/1580
FDO error happened when multi-selecting ODBC data in Flexible Web Layout


Modified: trunk/MgDev/Common/PlatformBase/MapLayer/SelectionBase.cpp
===================================================================
--- trunk/MgDev/Common/PlatformBase/MapLayer/SelectionBase.cpp	2011-01-05 10:31:34 UTC (rev 5489)
+++ trunk/MgDev/Common/PlatformBase/MapLayer/SelectionBase.cpp	2011-01-10 07:00:57 UTC (rev 5490)
@@ -550,7 +550,14 @@
                     selText.append(L" AND ");
                 }
 
-                selText.append(idIter->name);
+                if(idIter->name.find(L" ") != STRING::npos)
+                {
+                    selText.append(L"\"" + idIter->name + L"\"");
+                }
+                else
+                {
+                    selText.append(idIter->name);
+                }
                 selText.append(L"=");
 
                 switch (idIter->type)



More information about the mapguide-commits mailing list