Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 3.5.5

- Better exception message when SSL is not supported.

## 3.5.4

**Warning**: This version fixes the inconsistency of `3.5.3` by:
Expand Down
4 changes: 3 additions & 1 deletion lib/src/v3/connection.dart
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,9 @@ class PgConnectionImplementation extends _PgSessionBase implements Connection {
adaptedStream = socket;
} else {
// This server does not support SSL
throw PgException('Server does not support SSL, but it was required.');
throw PgException(
'Server does not support SSL, but it was required (default configuration). '
'To disable secure connections, use `ConnectionSettings(sslMode: SslMode.disable)`.');
}
} else {
// We've listened to the stream already and sockets are single-subscription
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: postgres
description: PostgreSQL database driver. Supports binary protocol, connection pooling and statement reuse.
version: 3.5.4
version: 3.5.5
homepage: https://github.com/isoos/postgresql-dart
topics:
- sql
Expand Down