Skip to content
Permalink
Browse files

[MSSQL] Fix pointer error

  • Loading branch information
NathanW2 committed Jun 23, 2017
1 parent dfd0d1f commit 5384a60fbae44959e08e5b084e84fcdc0c7db781
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/mssql/qgsmssqlprovider.cpp
@@ -988,7 +988,7 @@ bool QgsMssqlProvider::addFeatures( QgsFeatureList & flist )
{
// Z and M on the end of a WKT string isn't valid for
// SQL Server so we have to remove it first.
wkt = geom.exportToWkt();
wkt = geom->exportToWkt();
wkt.replace(QRegExp("[mzMZ]+\\s*\\("), "(");
}
query.addBindValue( wkt );

0 comments on commit 5384a60

Please sign in to comment.
You can’t perform that action at this time.