Skip to content

Commit

Permalink
GRASS v.in.ogr.qgis postgres - set schemas option, fixes #7427
Browse files Browse the repository at this point in the history
  • Loading branch information
blazek committed May 30, 2013
1 parent 58266c1 commit 8a932d2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/plugins/grass/qgsgrassmodule.cpp
Expand Up @@ -3401,9 +3401,11 @@ void QgsGrassModuleGdalInput::updateQgisLayers()
QgsDataSourceURI dsUri( provider->dataSourceUri() ); QgsDataSourceURI dsUri( provider->dataSourceUri() );
uri = "PG:" + dsUri.connectionInfo(); uri = "PG:" + dsUri.connectionInfo();


if ( dsUri.schema() != "" ) // Starting with GDAL 1.7.0, it is possible to restrict the schemas
// layer names are then listed without schema if only one schema is specified
if ( !dsUri.schema().isEmpty() )
{ {
ogrLayer = dsUri.schema() + "."; uri += " schemas=" + dsUri.schema();
} }


ogrLayer += dsUri.table(); ogrLayer += dsUri.table();
Expand Down

0 comments on commit 8a932d2

Please sign in to comment.