Bug report #930
SPIT does allow to connect to PostGIS
Status: | Closed | ||
---|---|---|---|
Priority: | Low | ||
Assignee: | nobody - | ||
Category: | - | ||
Affected QGIS version: | Regression?: | No | |
Operating System: | Debian | Easy fix?: | No |
Pull Request or Patch supplied: | Resolution: | fixed | |
Crashes QGIS or corrupts data: | Copied to github as #: | 10989 |
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).
History
#1 Updated by azog - almost 17 years ago
Replying to msieczka:
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).
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.
#2 Updated by Jürgen Fischer over 16 years ago
- Status changed from Open to Closed
- Resolution set to fixed
fixed in a08e4de9 (SVN r8294)
#3 Updated by Maciej Sieczka - over 16 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:
1. 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.
2. 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?
#4 Updated by Jürgen Fischer over 16 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.
#5 Updated by Maciej Sieczka - over 16 years ago
- Resolution deleted (
fixed) - Status changed from Closed to Feedback
Thanks Jürgen
I'll reopen the ticket so it's not missed when the patch can be applied.
#6 Updated by Jürgen Fischer over 16 years ago
- Status changed from Feedback to Closed
- Resolution set to fixed
fixed in trunk
#7 Updated by Maciej Sieczka - over 16 years ago
Yuppie!
#8 Updated by Maciej Sieczka - over 16 years ago
I mean: Yippie! (ki-yay). :D
#9 Updated by Maciej Sieczka - over 16 years ago
Darn, I mean "Yippee!" (and promise this is my last spam here).
#10 Updated by Anonymous over 15 years ago
Milestone Version 0.9.2 deleted