Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[MSSQL] Fix pointer error
  • Loading branch information
NathanW2 committed Jun 23, 2017
1 parent dfd0d1f commit 5384a60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/mssql/qgsmssqlprovider.cpp
Expand Up @@ -988,7 +988,7 @@ bool QgsMssqlProvider::addFeatures( QgsFeatureList & flist )
{ {
// Z and M on the end of a WKT string isn't valid for // Z and M on the end of a WKT string isn't valid for
// SQL Server so we have to remove it first. // SQL Server so we have to remove it first.
wkt = geom.exportToWkt(); wkt = geom->exportToWkt();
wkt.replace(QRegExp("[mzMZ]+\\s*\\("), "("); wkt.replace(QRegExp("[mzMZ]+\\s*\\("), "(");
} }
query.addBindValue( wkt ); query.addBindValue( wkt );
Expand Down

0 comments on commit 5384a60

Please sign in to comment.