We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 58266c1 commit 8a932d2Copy full SHA for 8a932d2
src/plugins/grass/qgsgrassmodule.cpp
@@ -3401,9 +3401,11 @@ void QgsGrassModuleGdalInput::updateQgisLayers()
3401
QgsDataSourceURI dsUri( provider->dataSourceUri() );
3402
uri = "PG:" + dsUri.connectionInfo();
3403
3404
- if ( dsUri.schema() != "" )
+ // Starting with GDAL 1.7.0, it is possible to restrict the schemas
3405
+ // layer names are then listed without schema if only one schema is specified
3406
+ if ( !dsUri.schema().isEmpty() )
3407
{
- ogrLayer = dsUri.schema() + ".";
3408
+ uri += " schemas=" + dsUri.schema();
3409
}
3410
3411
ogrLayer += dsUri.table();
0 commit comments