Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
5 additions
and
2 deletions .
+5
−2
src/providers/mssql/qgsmssqlprovider.cpp
@@ -2973,8 +2973,11 @@ bool QgsMssqlProvider::getExtentFromGeometryColumns( QgsRectangle &extent ) cons
QSqlQuery query = createQuery ();
query.setForwardOnly ( true );
QString sql = QStringLiteral ( " SELECT qgis_xmin,qgis_xmax,qgis_ymin,qgis_ymax FROM geometry_columns WHERE f_table_name = '%1' AND NOT (qgis_xmin IS NULL OR qgis_xmax IS NULL OR qgis_ymin IS NULL OR qgis_ymax IS NULL)" );
QString statement = sql.arg ( mTableName );
QString sql = QStringLiteral ( " SELECT qgis_xmin,qgis_xmax,qgis_ymin,qgis_ymax "
" FROM geometry_columns WHERE f_table_name = %1 AND f_table_schema = %2 "
" AND NOT (qgis_xmin IS NULL OR qgis_xmax IS NULL OR qgis_ymin IS NULL OR qgis_ymax IS NULL)" );
QString statement = sql.arg ( quotedValue ( mTableName ), quotedValue ( mSchemaName ) );
if ( query.exec ( statement ) && query.isActive () )
{
query.next ();
Toggle all file notes
Toggle all file annotations