-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tag reading when the database does not exist #25
Comments
I get a clean error, instance of P3Error with message P3Error PostgreSQL database "foo" does not exist when I try to connect to a non existing DB P3Client url: 'psql://sven@localhost/foo' and then do #isWorking |
I got this error while connecting using Glorp via P3DatabaseDriver. The password is set to |
So the |
to reproduce in my setup, I just need to do connection := P3Client new.
connection
host: 'localhost';
port: 5433;
database: 'pdmCC';
user: 'pdm';
password: 'somePassword'.
connection connect Where everything except the database name is correct. |
It is PostgreSQL 12 |
I was on 11.6, now also on 12.1
still gives me a clean P3Error. Note that #readMessageCloseAfterError does a #close hence the connection will be nil (after the info is read - the dictionary is filled in correctly). I am using https://postgresapp.com on macOS, Pharo 7.0.1 FWIW |
We are on Pharo 9.0 and Windows... |
This sometimes happens in regular use as well. It seems that at that point the underlying socket stream is in the state 'otherEndClosedButNotThisEnd'. It remains hard to reproduce though. |
When the database you try to connect does not exist, the method
P3MessageBuffer>>#readFrom:
(called fromP3Client>>#readMessageOnError:
)fails because the
readStream next
returnsnil
and the internal error handling does not expect such case.The text was updated successfully, but these errors were encountered: