Skip to content

Commit a47c480

Browse files
lorentzlassonhjr3
authored andcommitted
fix sslcompat remains
1 parent abff18d commit a47c480

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/pg-connection-string/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@ Query parameters follow a `?` character, including the following special query p
8585
* `encoding=<encoding>` - sets the `client_encoding` property
8686
* `ssl=1`, `ssl=true`, `ssl=0`, `ssl=false` - sets `ssl` to true or false, accordingly
8787
* `uselibpqcompat=true` - use libpq semantics
88-
* `sslmode=<sslmode>` when `sslcompat` is not set
88+
* `sslmode=<sslmode>` when `uselibpqcompat=true` is not set
8989
* `sslmode=disable` - sets `ssl` to false
9090
* `sslmode=no-verify` - sets `ssl` to `{ rejectUnauthorized: false }`
9191
* `sslmode=prefer`, `sslmode=require`, `sslmode=verify-ca`, `sslmode=verify-full` - sets `ssl` to true
92-
* `sslmode=<sslmode>` when `sslcompat=libpq`
92+
* `sslmode=<sslmode>` when `uselibpqcompat=true`
9393
* `sslmode=disable` - sets `ssl` to false
9494
* `sslmode=prefer` - sets `ssl` to `{ rejectUnauthorized: false }`
9595
* `sslmode=require` - sets `ssl` to `{ rejectUnauthorized: false }` unless `sslrootcert` is specified, in which case it behaves like `verify-ca`

packages/pg-connection-string/test/parse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ describe('parse', function () {
403403
expect(subject.ssl?.checkServerIdentity()).be.undefined
404404
})
405405

406-
it('does not allow sslcompat query parameter and useLibpqCompat option at the same time', function () {
406+
it('does not allow uselibpqcompat query parameter and useLibpqCompat option at the same time', function () {
407407
const connectionString = 'pg:///?uselibpqcompat=true'
408408
expect(function () {
409409
parse(connectionString, { useLibpqCompat: true })

0 commit comments

Comments
 (0)