Skip to content
Permalink
Browse files

[mssql] Fix incorrect layer extents after modifying layers

  • Loading branch information
nyalldawson committed Oct 22, 2018
1 parent fb0b8fd commit 72946c30b4649c98b5cd71a7aa89a2d8412cde3f
Showing with 6 additions and 0 deletions.
  1. +5 −0 src/providers/mssql/qgsmssqlprovider.cpp
  2. +1 −0 src/providers/mssql/qgsmssqlprovider.h
@@ -1412,6 +1412,11 @@ bool QgsMssqlProvider::deleteFeatures( const QgsFeatureIds &id )
return true;
}

void QgsMssqlProvider::updateExtents()
{
mExtent.setMinimal();
}

QgsVectorDataProvider::Capabilities QgsMssqlProvider::capabilities() const
{
QgsVectorDataProvider::Capabilities cap = CreateAttributeIndex | AddFeatures | AddAttributes;
@@ -58,6 +58,7 @@ class QgsMssqlProvider : public QgsVectorDataProvider

/* Implementation of functions from QgsVectorDataProvider */

void updateExtents() override;
QString storageType() const override;
QStringList subLayers() const override;
QVariant minimumValue( int index ) const override;

0 comments on commit 72946c3

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