Skip to content
Permalink
Browse files

Code format

  • Loading branch information
NathanW2 committed Jun 23, 2017
1 parent b698612 commit 7ed6c90f51d3ff9b9bd87b1f24b0a41ef5b7345b
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/providers/mssql/qgsmssqlprovider.cpp
@@ -999,7 +999,7 @@ bool QgsMssqlProvider::addFeatures( QgsFeatureList &flist, Flags flags )
// 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 );
}
@@ -1335,7 +1335,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 7ed6c90

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