Bug report #15706
"Import Vector into PostGIS database" tool does not honour libpq defults
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | Victor Olaya | ||
Category: | Processing/Core | ||
Affected QGIS version: | 2.14.7 | Regression?: | No |
Operating System: | Easy fix?: | No | |
Pull Request or Patch supplied: | No | Resolution: | |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 23629 |
Description
I have connection with unspecified host/user to rely on libpq defaults (including env variables).
Using "Import Vector into PostGIS database" tool forces "host= user=" in the URI string, effectively setting them to EMPTY instead of using the environment variable, with the effect of a failed import.
This was already fixed for DBManager (for an example implementation). See #9037
Associated revisions
[processing] Allow using libpq defaults for host,port,user,pass and dbname
Fixes #15706
[processing] Allow using libpq defaults for host,port,user,pass and dbname
Fixes #15706
Includes tests
[processing] Allow using libpq defaults for host,port,user,pass and dbname
Fixes #15706
History
#1 Updated by Victor Olaya about 8 years ago
Sandro
i made this PR with changes and assigned it to you
https://github.com/qgis/QGIS/pull/3604
Feel free to merge it and close this ticket
#2 Updated by Sandro Santilli about 8 years ago
- Affected QGIS version changed from 2.16.3 to 2.14.6
2.14.7 is also affected (NOTE: "2.14.7" is missing from "Affected version" list)
#3 Updated by Sandro Santilli about 8 years ago
- % Done changed from 0 to 30
- Status changed from Open to In Progress
#4 Updated by Sandro Santilli about 8 years ago
I made another PR which completely avoids adding any default: https://github.com/qgis/QGIS/pull/3607
#5 Updated by Sandro Santilli about 8 years ago
- Status changed from In Progress to Closed
Fixed in changeset be3e807d0f0e7a9099f7ff48ca02855583c1d841.
#6 Updated by Jürgen Fischer about 8 years ago
- Affected QGIS version changed from 2.14.6 to 2.14.7