mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
GRASS v.in.ogr.qgis postgres - set schemas option, fixes #7427
This commit is contained in:
parent
58266c145c
commit
8a932d294a
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user