Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GetFeature requests broken with MSSQL Driver #5172
I have updated my system to using MS7 (with a dev build from http://www.gisinternals.com).
WMS layers are all working fine but all WFS layers are broken. Any GetFeature request returns the following:
My layer configurations have not changed (and work fine in 6.4), and looking at SQL Profiler the initial query to get the column names runs successfully and returns a GEOM field.
From discussions with @szekerest
I'm not sure what is meant by ODBC driver - the underlying Windows ODBC driver, or the driver based on mapmssql2008.c.
All was working fine (and still is) in MapServer 6.4, so I'm not sure what has changed in version 7.
After getting the code to compile and setting up the debugger on Windows I was able to find the cause of this issue.
It appears there have been changes to the ODBC types since Windows 2003.
When debugging the following error was thrown just after the SQLDescribeCol function.
Fixing the first type led to the next error:
After changing all the SQLINTEGER and SQLUINTEGER to SQLLEN and SQLULEN respectively, the GetFeature requests worked again.
I have created a pull request at #5262