chore: bump github.com/lib/pq from 1.10.9 to 1.12.0
Type: Pull Request
State: Closed
Association: Unknown
Comments: 1
(3 months ago)
(2 months ago)
(2 months ago)
stale dependencies go
Bumps github.com/lib/pq from 1.10.9 to 1.12.0.
Release notes
Sourced from github.com/lib/pq's releases.
v1.12.0
The next release may change the default sslmode from
requiretoprefer. See #1271 for details.
CopyIn()andCopyInToSchema()have been marked as deprecated. These are simple query builders and not needed forCOPY [..] FROM STDINsupport (which is not deprecated). (#1279)// Old tx.Prepare(CopyIn("temp", "num", "text", "blob", "nothing"))// Replacement tx.Prepare(
copy temp (num, text, blob, nothing) from stdin)Features
Support protocol 3.2, and the
min_protocol_versionandmax_protocol_versionDSN parameters (#1258).Support
sslmode=preferandsslmode=allow(#1270).Support
ssl_min_protocol_versionandssl_max_protocol_version(#1277).Support connection service file to load connection details (#1285).
Support
sslrootcert=systemand use~/.postgresql/root.crtas the default value of sslrootcert (#1280, #1281).Add a new
pqerrorpackage with PostgreSQL error codes (#1275).For example, to test if an error is a UNIQUE constraint violation:
if pqErr, ok := errors.AsType[*pq.Error](https://github.com/lib/pq/blob/HEAD/err); ok && pqErr.Code == pqerror.UniqueViolation { log.Fatalf("email %q already exsts", email) }To make this a bit more convenient, it also adds a
pq.As()function:pqErr := pq.As(err, pqerror.UniqueViolation) if pqErr != nil { log.Fatalf("email %q already exsts", email) }Fixes
Fix SSL key permission check to allow modes stricter than 0600/0640 (#1265).
Fix Hstore to work with binary parameters (#1278).
Clearer error when starting a new query while pq is still processing another query (#1272).
Send intermediate CAs with client certificates, so they can be signed by an intermediate CA (#1267).
Use
time.UTCfor UTC aliases such asEtc/UTC(#1283).
... (truncated)
Changelog
Sourced from github.com/lib/pq's changelog.
v1.12.0 (2026-03-18)
The next release may change the default sslmode from
requiretoprefer. See #1271 for details.
CopyIn()andCopyInToSchema()have been marked as deprecated. These are simple query builders and not needed forCOPY [..] FROM STDINsupport (which is not deprecated). (#1279)// Old tx.Prepare(CopyIn("temp", "num", "text", "blob", "nothing"))// Replacement tx.Prepare(
copy temp (num, text, blob, nothing) from stdin)Features
Support protocol 3.2, and the
min_protocol_versionandmax_protocol_versionDSN parameters (#1258).Support
sslmode=preferandsslmode=allow(#1270).Support
ssl_min_protocol_versionandssl_max_protocol_version(#1277).Support connection service file to load connection details (#1285).
Support
sslrootcert=systemand use~/.postgresql/root.crtas the default value of sslrootcert (#1280, #1281).Add a new
pqerrorpackage with PostgreSQL error codes (#1275).For example, to test if an error is a UNIQUE constraint violation:
if pqErr, ok := errors.AsType[*pq.Error](https://github.com/lib/pq/blob/master/err); ok && pqErr.Code == pqerror.UniqueViolation { log.Fatalf("email %q already exsts", email) }To make this a bit more convenient, it also adds a
pq.As()function:pqErr := pq.As(err, pqerror.UniqueViolation) if pqErr != nil { log.Fatalf("email %q already exsts", email) }Fixes
Fix SSL key permission check to allow modes stricter than 0600/06400600 (#1265).
Fix Hstore to work with binary parameters (#1278).
... (truncated)
Commits
42ab0ffChange default sslmode from "require" to "prefer"6d40f13Release v1.12.0386fc0eDocument NULL behaviour with COPYa62682eBetter staticcheck cache 287ee06cBetter staticcheck cache0962458Rewrite tests to use pqerror, pq.As()0d20981Don't move pq.Error to pqerror.Error4332138Add pqerror package620d6d5Make tests run fasterdc8ff5dImplement connection service file- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Package Dependencies
Technical Details
| ID: | 15009718 |
| UUID: | 4120114954 |
| Node ID: | PR_kwDOLmBl1M7MptmE |
| Host: | GitHub |
| Repository: | Txim0520/https-github.com-coder-coder |