[mapserver-commits] r11145 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Thu Mar 10 17:58:18 EST 2011
Author: tamas
Date: 2011-03-10 14:58:18 -0800 (Thu, 10 Mar 2011)
New Revision: 11145
Modified:
trunk/mapserver/HISTORY.TXT
trunk/mapserver/mapmssql2008.c
Log:
Fixed SQL Spatial to be able to use UniqueIdentifier field as unique key (#3722)
Modified: trunk/mapserver/HISTORY.TXT
===================================================================
--- trunk/mapserver/HISTORY.TXT 2011-03-10 22:13:18 UTC (rev 11144)
+++ trunk/mapserver/HISTORY.TXT 2011-03-10 22:58:18 UTC (rev 11145)
@@ -14,6 +14,8 @@
Current Version (SVN trunk):
----------------------------
+- Fixed SQL Spatial to be able to use UniqueIdentifier field as unique key (#3722)
+
- Fix PHP Windows build (#3714)
- Fixed --with-opengl build issue: Look for OpenGL libs under /usr/lib64 as
Modified: trunk/mapserver/mapmssql2008.c
===================================================================
--- trunk/mapserver/mapmssql2008.c 2011-03-10 22:13:18 UTC (rev 11144)
+++ trunk/mapserver/mapmssql2008.c 2011-03-10 22:58:18 UTC (rev 11145)
@@ -558,7 +558,7 @@
{
char buffer[1000];
- snprintf(buffer, sizeof(buffer), "%s.STAsBinary(),convert(varchar(20), %s)", layerinfo->geom_column, layerinfo->urid_name);
+ snprintf(buffer, sizeof(buffer), "%s.STAsBinary(),convert(varchar(36), %s)", layerinfo->geom_column, layerinfo->urid_name);
columns_wanted = msStrdup(buffer);
}
@@ -570,7 +570,7 @@
snprintf(buffer + strlen(buffer), sizeof(buffer) - strlen(buffer), "convert(varchar(max), %s),", layer->items[t]);
}
- snprintf(buffer + strlen(buffer), sizeof(buffer) - strlen(buffer), "%s.STAsBinary(),convert(varchar(20), %s)", layerinfo->geom_column, layerinfo->urid_name);
+ snprintf(buffer + strlen(buffer), sizeof(buffer) - strlen(buffer), "%s.STAsBinary(),convert(varchar(36), %s)", layerinfo->geom_column, layerinfo->urid_name);
columns_wanted = msStrdup(buffer);
}
@@ -1510,7 +1510,7 @@
if(layer->numitems == 0)
{
- snprintf(buffer, sizeof(buffer), "%s.STAsBinary(), convert(varchar(20), %s)", layerinfo->geom_column, layerinfo->urid_name);
+ snprintf(buffer, sizeof(buffer), "%s.STAsBinary(), convert(varchar(36), %s)", layerinfo->geom_column, layerinfo->urid_name);
columns_wanted = msStrdup(buffer);
}
else
@@ -1519,7 +1519,7 @@
snprintf(buffer + strlen(buffer), sizeof(buffer) - strlen(buffer), "convert(varchar(max), %s),", layer->items[t]);
}
- snprintf(buffer + strlen(buffer), sizeof(buffer) - strlen(buffer), "%s.STAsBinary(), convert(varchar(20), %s)", layerinfo->geom_column, layerinfo->urid_name);
+ snprintf(buffer + strlen(buffer), sizeof(buffer) - strlen(buffer), "%s.STAsBinary(), convert(varchar(36), %s)", layerinfo->geom_column, layerinfo->urid_name);
columns_wanted = msStrdup(buffer);
}
More information about the mapserver-commits
mailing list