Skip to content

Commit 5384a60

Browse files
committed
[MSSQL] Fix pointer error
1 parent dfd0d1f commit 5384a60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/providers/mssql/qgsmssqlprovider.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,7 @@ bool QgsMssqlProvider::addFeatures( QgsFeatureList & flist )
988988
{
989989
// Z and M on the end of a WKT string isn't valid for
990990
// SQL Server so we have to remove it first.
991-
wkt = geom.exportToWkt();
991+
wkt = geom->exportToWkt();
992992
wkt.replace(QRegExp("[mzMZ]+\\s*\\("), "(");
993993
}
994994
query.addBindValue( wkt );

0 commit comments

Comments
 (0)