File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -903,7 +903,7 @@ bool QgsMssqlProvider::addFeatures( QgsFeatureList & flist )
903
903
const QgsGeometry *geom = it->constGeometry ();
904
904
if ( mUseWkb )
905
905
{
906
- QByteArray bytea = QByteArray (( char * )geom->asWkb (), geom->wkbSize () );
906
+ QByteArray bytea = QByteArray (( char * )geom->asWkb (), ( int ) geom->wkbSize () );
907
907
query.addBindValue ( bytea, QSql::In | QSql::Binary );
908
908
}
909
909
else
@@ -1221,7 +1221,7 @@ bool QgsMssqlProvider::changeGeometryValues( QgsGeometryMap & geometry_map )
1221
1221
// add geometry param
1222
1222
if ( mUseWkb )
1223
1223
{
1224
- QByteArray bytea = QByteArray (( char * )it->asWkb (), it->wkbSize () );
1224
+ QByteArray bytea = QByteArray (( char * )it->asWkb (), ( int ) it->wkbSize () );
1225
1225
query.addBindValue ( bytea, QSql::In | QSql::Binary );
1226
1226
}
1227
1227
else
You can’t perform that action at this time.
0 commit comments