Skip to content
Permalink
Browse files

[mssql] Fix "use estimated table parameters" setting is ignored

  • Loading branch information
nyalldawson committed May 29, 2017
1 parent f3407f8 commit 4081927d0f2048ba2163a2def4ca32686067b564
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/providers/mssql/qgsmssqlsourceselect.cpp
@@ -495,7 +495,7 @@ void QgsMssqlSourceSelect::on_btnConnect_clicked()

bool allowGeometrylessTables = cbxAllowGeometrylessTables->isChecked();

bool estimateMetadata = settings.value( key + "/estimatedMetadata", true ).toBool();
mUseEstimatedMetadata = settings.value( key + "/estimatedMetadata", true ).toBool();

mConnInfo = "dbname='" + database + '\'';
if ( !host.isEmpty() )
@@ -585,7 +585,7 @@ void QgsMssqlSourceSelect::on_btnConnect_clicked()
{
if ( type == "GEOMETRY" || type.isNull() || srid.isEmpty() )
{
addSearchGeometryColumn( connectionName, layer, estimateMetadata );
addSearchGeometryColumn( connectionName, layer, mUseEstimatedMetadata );
type = "";
srid = "";
}

0 comments on commit 4081927

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