#930 closed bug (fixed)
SPIT does allow to connect to PostGIS
Reported by: | msieczka | Owned by: | nobody |
---|---|---|---|
Priority: | major: does not work as expected | Milestone: | |
Component: | SPIT | Version: | Trunk |
Keywords: | pgsql postgis import | Cc: | |
Must Fix for Release: | Yes | Platform: | Debian |
Platform Version: | ubuntu 7.10 amd64 | Awaiting user input: | no |
Description
In SPIT I have setup the connection. The "Test Connect" says: "Connection to <database name here> was successfull". However, the "Connect" button in SPIT is greyed-out, inactive.
The same connection setup that SPIT refuses to use works OK for "Add a PostGIS Layer" dialog.
If in SPIT I choose a shapefile and press OK anyway, even though it seems I'm not connected (the "Connect" button is greyed-out all the time) and press OK, SPIT segfaults like described in the bug #865 (reported 2 months ago).
Attachments (1)
Change History (12)
comment:1 by , 15 years ago
Keywords: | pgsql postgis import added |
---|---|
Platform Version: | → ubuntu 7.10 amd64 |
comment:2 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Summary: | SPIT does allow to connect to PostGIS → 8 |
fixed in r8293
comment:3 by , 15 years ago
Summary: | 8 → SPIT does allow to connect to PostGIS |
---|
comment:4 by , 15 years ago
Author: jef
- remove disabled connect button (spit automatically connects on OK)
First of all it's great you found time to fix SPIT. Very much appreciated!
Regarding the connect button removal however I have doubts:
- Actually now SPIT automatically connects right away on it's startup, not on OK later. This forces and arbitrary connection to be chosen by default, if you have more available.
- A missing connect button makes SPIT interface different from add PostGIS layer dialog for no reason; each such difference makes it harder for newcomers and QGIS teachers (they ask me "But why do the two differ?", I say "Just because.". Neither me nor they are satisfied with the reply :) ).
BTW - SPIT fails to ask for password if the given connection does not have one saved. It just yields an error "Connection failed - Check settings and try again". Same as "Test connection" button. Could they instead pop up a dialog for password, like the Add PostGIS Layer dialog does after pressing the connect button?
comment:5 by , 15 years ago
the patch patch fixes the connection problem. As we are currently in string freeze this will not make it into 0.9.2.
comment:6 by , 15 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Thanks Jürgen
I'll reopen the ticket so it's not missed when the patch can be applied.
Replying to msieczka:
I have the exact same experience on ubuntu 7.10 amd64, running 0.9.2 w/pgsql 8.2.6+postgis. I can connect to the database, no problem w/test connection, but not in SPIT. When trying to go ahead anyway, I also experience a crash.