Skip to content
Permalink
Browse files

GRASS v.in.ogr.qgis postgres - set schemas option, fixes #7427

  • Loading branch information
blazek committed May 30, 2013
1 parent 58266c1 commit 8a932d294a1fcafc97e1e255f47eb6764de9aa59
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/plugins/grass/qgsgrassmodule.cpp
@@ -3401,9 +3401,11 @@ void QgsGrassModuleGdalInput::updateQgisLayers()
QgsDataSourceURI dsUri( provider->dataSourceUri() );
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();

0 comments on commit 8a932d2

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