We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 49e4567 commit 4a1bf6dCopy full SHA for 4a1bf6d
src/providers/mssql/qgsmssqlprovider.cpp
@@ -925,7 +925,9 @@ bool QgsMssqlProvider::addFeatures( QgsFeatureList & flist )
925
}
926
else
927
{
928
- QString wkt = geom->exportToWkt();
+ QString wkt;
929
+ if ( geom && !geom->isEmpty() )
930
+ wkt = geom->exportToWkt();
931
query.addBindValue( wkt );
932
933
0 commit comments