Update puddle to v2.1.2. This resolves a race condition and a deadlock in pgxpool.
QueryRewriter.RewriteQuery now returns an error. Technically, this is a breaking change for any external implementers, but given the minimal likelihood that there are actually any external implementers this change was accepted.
Expose GetSSLPassword support to pgx.
Fix encode ErrorResponse unknown field handling. This would only affect pgproto3 being used directly as a proxy with a non-PostgreSQL server that included additional error fields.
Fix date text format encoding with 5 digit years.
Fix date values passed to a sql.Scanner as string instead of time.Time.
DateCodec.DecodeValue can return pgtype.InfinityModifier instead of string for infinite values. This now matches the behavior of the timestamp types.
Add domain type support to Conn.LoadType().
Add RowToStructByName and RowToAddrOfStructByName. (Pavlo Golub)
Add Conn.DeallocateAll() to clear all prepared statements including the statement cache. (Bodo Kaiser)
5.0.4 (October 24, 2022)
Fix: CollectOneRow prefers PostgreSQL error over pgx.ErrorNoRows
Fix: some reflect Kind checks to first check for nil
Bump golang.org/x/text dependency to placate snyk
Fix: RowToStructByPos on structs with multiple anonymous sub-structs (Baptiste Fontaine)
Fix: Exec checks if tx is closed
5.0.3 (October 14, 2022)
Fix driver.Valuer handling edge cases that could cause infinite loop or crash
v5.0.2 (October 8, 2022)
Fix date encoding in text format to always use 2 digits for month and day
Prefer driver.Valuer over wrap plans when encoding
Fix scan to pointer to pointer to renamed type
Allow scanning NULL even if PG and Go types are incompatible
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 rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will 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 version` will 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 dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps github.com/jackc/pgx/v5 from 5.0.1 to 5.1.0.
Changelog
Sourced from github.com/jackc/pgx/v5's changelog.
Commits
b4d2eae
Update changelog3520c2e
updated DeallocateAll to also reset client-side statement and description cachec94c47f
added DeallocateAll to pgx.Conn to clear prepared statement cache8678ed5
Update puddle to v2.1.205924a9
Update CONTRIBUTING.md2e9e286
Added more docs and tests14be515
implementRowToStructByName
andRowToAddrOfStructByName
1376a2c
Update Go doc badge932f676
Remove PG 10 from CI and add PG 15 to CI5b6fb75
Conn.LoadType supports domain typesDependabot 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 rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will 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 version` will 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 dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)