[mapserver-commits] r9723 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Thu Jan 21 11:17:15 EST 2010


Author: assefa
Date: 2010-01-21 11:17:15 -0500 (Thu, 21 Jan 2010)
New Revision: 9723

Modified:
   trunk/mapserver/maplayer.c
Log:
Fix crash when drawing a map using UNIQUE function in the layer data #3271

Modified: trunk/mapserver/maplayer.c
===================================================================
--- trunk/mapserver/maplayer.c	2010-01-21 15:31:34 UTC (rev 9722)
+++ trunk/mapserver/maplayer.c	2010-01-21 16:17:15 UTC (rev 9723)
@@ -372,7 +372,8 @@
   }
 
   /* force get_all=MS_TRUE in some cases */
-  if(layer->connectiontype == MS_INLINE || layer->connectiontype == MS_SDE)
+  if(layer->connectiontype == MS_INLINE || layer->connectiontype == MS_SDE ||
+     (layer->connectiontype == MS_ORACLESPATIAL && layer->data && msCaseFindSubstring(layer->data, "UNIQUE")))
     get_all=MS_TRUE;
 
   /*



More information about the mapserver-commits mailing list