Skip to content
Permalink
Browse files

Code format

  • Loading branch information
NathanW2 committed Jun 23, 2017
1 parent 5384a60 commit 7548cf0f400f09eea37c2cdec0f622fb199262b0
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/providers/mssql/qgsmssqlprovider.cpp
@@ -989,7 +989,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.replace(QRegExp("[mzMZ]+\\s*\\("), "(");
wkt.replace( QRegExp( "[mzMZ]+\\s*\\(" ), "(" );
}
query.addBindValue( wkt );
}
@@ -1316,7 +1316,7 @@ bool QgsMssqlProvider::changeGeometryValues( const QgsGeometryMap &geometry_map
QString wkt = it->exportToWkt();
// Z and M on the end of a WKT string isn't valid for
// SQL Server so we have to remove it first.
wkt.replace(QRegExp("[mzMZ]+\\s*\\("), "(");
wkt.replace( QRegExp( "[mzMZ]+\\s*\\(" ), "(" );
query.addBindValue( wkt );
}

0 comments on commit 7548cf0

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