[mapserver-commits] r7985 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Sat Oct 18 16:49:29 EDT 2008


Author: tamas
Date: 2008-10-18 16:49:28 -0400 (Sat, 18 Oct 2008)
New Revision: 7985

Modified:
   trunk/mapserver/mapmssql2008.c
Log:
Fix for the access violation caused by msMSSQL2008LayerGetShape (#2795)

Modified: trunk/mapserver/mapmssql2008.c
===================================================================
--- trunk/mapserver/mapmssql2008.c	2008-10-17 16:09:54 UTC (rev 7984)
+++ trunk/mapserver/mapmssql2008.c	2008-10-18 20:49:28 UTC (rev 7985)
@@ -1471,7 +1471,7 @@
         return MS_FAILURE;
     }
 
-	return msMSSQL2008LayerGetShapeRandom(layer, shape, 0);
+	return msMSSQL2008LayerGetShapeRandom(layer, shape, &(layerinfo->row_num));
 }
 
 /* Query the DB for info about the requested table */



More information about the mapserver-commits mailing list