From 72cc95e4dd18576691da38c46c7e6a101869c10a Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Sat, 11 Dec 2021 13:29:03 -0600 Subject: [PATCH] Bump module version to v5 --- README.md | 8 ++++---- batch.go | 2 +- batch_test.go | 6 +++--- bench_test.go | 8 ++++---- conn.go | 8 ++++---- conn_test.go | 8 ++++---- copy_from.go | 2 +- copy_from_test.go | 4 ++-- example_custom_type_test.go | 4 ++-- example_json_test.go | 2 +- examples/chat/main.go | 2 +- examples/todo/main.go | 2 +- examples/url_shortener/main.go | 6 +++--- extended_query_builder.go | 2 +- go.mod | 2 +- helper_test.go | 4 ++-- internal/sanitize/sanitize_test.go | 2 +- large_objects_test.go | 4 ++-- log/kitlogadapter/adapter.go | 2 +- log/log15adapter/adapter.go | 2 +- log/logrusadapter/adapter.go | 2 +- log/testingadapter/adapter.go | 2 +- log/zapadapter/adapter.go | 2 +- log/zerologadapter/adapter.go | 2 +- log/zerologadapter/adapter_test.go | 4 ++-- messages.go | 2 +- pgbouncer_test.go | 6 +++--- pgconn/benchmark_test.go | 2 +- pgconn/config_test.go | 2 +- pgconn/errors_test.go | 2 +- pgconn/frontend_test.go | 2 +- pgconn/helper_test.go | 2 +- pgconn/internal/ctxwatch/context_watcher_test.go | 2 +- pgconn/pgconn.go | 2 +- pgconn/pgconn_stress_test.go | 2 +- pgconn/pgconn_test.go | 2 +- pgconn/stmtcache/lru.go | 2 +- pgconn/stmtcache/lru_test.go | 4 ++-- pgconn/stmtcache/stmtcache.go | 2 +- pgtype/aclitem_array_test.go | 4 ++-- pgtype/aclitem_test.go | 4 ++-- pgtype/array_test.go | 2 +- pgtype/array_type_test.go | 4 ++-- pgtype/bit_test.go | 4 ++-- pgtype/bool_array_test.go | 4 ++-- pgtype/bool_test.go | 4 ++-- pgtype/box_test.go | 4 ++-- pgtype/bpchar_array_test.go | 4 ++-- pgtype/bpchar_test.go | 4 ++-- pgtype/bytea_array_test.go | 4 ++-- pgtype/bytea_test.go | 4 ++-- pgtype/cid_test.go | 4 ++-- pgtype/cidr_array_test.go | 4 ++-- pgtype/circle_test.go | 4 ++-- pgtype/composite_bench_test.go | 2 +- pgtype/composite_fields_test.go | 6 +++--- pgtype/composite_type_test.go | 6 +++--- pgtype/custom_composite_test.go | 4 ++-- pgtype/date_array_test.go | 4 ++-- pgtype/date_test.go | 4 ++-- pgtype/daterange_test.go | 4 ++-- pgtype/enum_array_test.go | 4 ++-- pgtype/enum_type_test.go | 6 +++--- pgtype/float4_array_test.go | 4 ++-- pgtype/float4_test.go | 4 ++-- pgtype/float8_array_test.go | 4 ++-- pgtype/float8_test.go | 4 ++-- pgtype/hstore_array_test.go | 6 +++--- pgtype/hstore_test.go | 4 ++-- pgtype/inet_array_test.go | 4 ++-- pgtype/inet_test.go | 4 ++-- pgtype/int2_array_test.go | 4 ++-- pgtype/int2_test.go | 4 ++-- pgtype/int4_array_test.go | 4 ++-- pgtype/int4_test.go | 4 ++-- pgtype/int4range_test.go | 4 ++-- pgtype/int8_array_test.go | 4 ++-- pgtype/int8_test.go | 4 ++-- pgtype/int8range_test.go | 4 ++-- pgtype/integration_benchmark_test.go | 6 +++--- pgtype/integration_benchmark_test.go.erb | 4 ++-- pgtype/interval_test.go | 4 ++-- pgtype/json_test.go | 4 ++-- pgtype/jsonb_array_test.go | 4 ++-- pgtype/jsonb_test.go | 4 ++-- pgtype/line_test.go | 4 ++-- pgtype/lseg_test.go | 4 ++-- pgtype/macaddr_array_test.go | 4 ++-- pgtype/macaddr_test.go | 4 ++-- pgtype/name_test.go | 4 ++-- pgtype/numeric_array_test.go | 4 ++-- pgtype/numeric_test.go | 6 +++--- pgtype/numrange_test.go | 4 ++-- pgtype/oid_value_test.go | 4 ++-- pgtype/path_test.go | 4 ++-- pgtype/pgtype_test.go | 6 +++--- pgtype/pgxtype/pgxtype.go | 6 +++--- pgtype/point_test.go | 4 ++-- pgtype/polygon_test.go | 4 ++-- pgtype/qchar_test.go | 4 ++-- pgtype/record_test.go | 6 +++--- pgtype/testutil/testutil.go | 6 +++--- pgtype/text_array_test.go | 4 ++-- pgtype/text_test.go | 4 ++-- pgtype/tid_test.go | 4 ++-- pgtype/time_test.go | 4 ++-- pgtype/timestamp_array_test.go | 4 ++-- pgtype/timestamp_test.go | 4 ++-- pgtype/timestamptz_array_test.go | 4 ++-- pgtype/timestamptz_test.go | 4 ++-- pgtype/tsrange_test.go | 4 ++-- pgtype/tstzrange_test.go | 4 ++-- pgtype/uuid_array_test.go | 4 ++-- pgtype/uuid_test.go | 4 ++-- pgtype/varbit_test.go | 4 ++-- pgtype/varchar_array_test.go | 4 ++-- pgtype/xid_test.go | 4 ++-- pgtype/zeronull/float8.go | 2 +- pgtype/zeronull/float8_test.go | 4 ++-- pgtype/zeronull/int2.go | 2 +- pgtype/zeronull/int2_test.go | 4 ++-- pgtype/zeronull/int4.go | 2 +- pgtype/zeronull/int4_test.go | 4 ++-- pgtype/zeronull/int8.go | 2 +- pgtype/zeronull/int8_test.go | 4 ++-- pgtype/zeronull/text.go | 2 +- pgtype/zeronull/text_test.go | 4 ++-- pgtype/zeronull/timestamp.go | 2 +- pgtype/zeronull/timestamp_test.go | 4 ++-- pgtype/zeronull/timestamptz.go | 2 +- pgtype/zeronull/timestamptz_test.go | 4 ++-- pgtype/zeronull/uuid.go | 2 +- pgtype/zeronull/uuid_test.go | 4 ++-- pgxpool/batch_results.go | 4 ++-- pgxpool/bench_test.go | 4 ++-- pgxpool/common_test.go | 6 +++--- pgxpool/conn.go | 4 ++-- pgxpool/conn_test.go | 2 +- pgxpool/pool.go | 4 ++-- pgxpool/pool_test.go | 4 ++-- pgxpool/rows.go | 4 ++-- pgxpool/tx.go | 4 ++-- pgxpool/tx_test.go | 2 +- query_test.go | 8 ++++---- rows.go | 4 ++-- stdlib/sql.go | 6 +++--- stdlib/sql_test.go | 6 +++--- tx.go | 2 +- tx_test.go | 4 ++-- values.go | 2 +- values_test.go | 2 +- 151 files changed, 287 insertions(+), 287 deletions(-) diff --git a/README.md b/README.md index 63a0cff8..03f23bdb 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![](https://godoc.org/github.com/jackc/pgx?status.svg)](https://pkg.go.dev/github.com/jackc/pgx/v4) +[![](https://godoc.org/github.com/jackc/pgx?status.svg)](https://pkg.go.dev/github.com/jackc/pgx/v5) [![Build Status](https://travis-ci.org/jackc/pgx.svg)](https://travis-ci.org/jackc/pgx) # pgx - PostgreSQL Driver and Toolkit @@ -25,7 +25,7 @@ import ( "fmt" "os" - "github.com/jackc/pgx/v4" + "github.com/jackc/pgx/v5" ) func main() { @@ -164,11 +164,11 @@ from pgx for lower-level control. `pgconn` is a lower-level PostgreSQL database driver that operates at nearly the same level as the C library `libpq`. -### [github.com/jackc/pgx/v4/pgxpool](https://github.com/jackc/pgx/tree/master/pgxpool) +### [github.com/jackc/pgx/v5/pgxpool](https://github.com/jackc/pgx/tree/master/pgxpool) `pgxpool` is a connection pool for pgx. pgx is entirely decoupled from its default pool implementation. This means that pgx can be used with a different pool or without any pool at all. -### [github.com/jackc/pgx/v4/stdlib](https://github.com/jackc/pgx/tree/master/stdlib) +### [github.com/jackc/pgx/v5/stdlib](https://github.com/jackc/pgx/tree/master/stdlib) This is a `database/sql` compatibility layer for pgx. pgx can be used as a normal `database/sql` driver, but at any time, the native interface can be acquired for more performance or PostgreSQL specific functionality. diff --git a/batch.go b/batch.go index 547a0efc..18ee8339 100644 --- a/batch.go +++ b/batch.go @@ -4,7 +4,7 @@ import ( "context" "errors" - "github.com/jackc/pgx/v4/pgconn" + "github.com/jackc/pgx/v5/pgconn" ) type batchItem struct { diff --git a/batch_test.go b/batch_test.go index c0eb32d5..dc57b379 100644 --- a/batch_test.go +++ b/batch_test.go @@ -5,9 +5,9 @@ import ( "os" "testing" - "github.com/jackc/pgx/v4" - "github.com/jackc/pgx/v4/pgconn" - "github.com/jackc/pgx/v4/pgconn/stmtcache" + "github.com/jackc/pgx/v5" + "github.com/jackc/pgx/v5/pgconn" + "github.com/jackc/pgx/v5/pgconn/stmtcache" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/bench_test.go b/bench_test.go index 40e24da3..06cfd0c4 100644 --- a/bench_test.go +++ b/bench_test.go @@ -12,10 +12,10 @@ import ( "testing" "time" - "github.com/jackc/pgx/v4" - "github.com/jackc/pgx/v4/pgconn" - "github.com/jackc/pgx/v4/pgconn/stmtcache" - "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v5" + "github.com/jackc/pgx/v5/pgconn" + "github.com/jackc/pgx/v5/pgconn/stmtcache" + "github.com/jackc/pgx/v5/pgtype" "github.com/stretchr/testify/require" ) diff --git a/conn.go b/conn.go index 22cc4f74..4412e174 100644 --- a/conn.go +++ b/conn.go @@ -9,10 +9,10 @@ import ( "time" "github.com/jackc/pgproto3/v2" - "github.com/jackc/pgx/v4/internal/sanitize" - "github.com/jackc/pgx/v4/pgconn" - "github.com/jackc/pgx/v4/pgconn/stmtcache" - "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v5/internal/sanitize" + "github.com/jackc/pgx/v5/pgconn" + "github.com/jackc/pgx/v5/pgconn/stmtcache" + "github.com/jackc/pgx/v5/pgtype" ) // ConnConfig contains all the options used to establish a connection. It must be created by ParseConfig and diff --git a/conn_test.go b/conn_test.go index fa764b18..857fd828 100644 --- a/conn_test.go +++ b/conn_test.go @@ -8,10 +8,10 @@ import ( "testing" "time" - "github.com/jackc/pgx/v4" - "github.com/jackc/pgx/v4/pgconn" - "github.com/jackc/pgx/v4/pgconn/stmtcache" - "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v5" + "github.com/jackc/pgx/v5/pgconn" + "github.com/jackc/pgx/v5/pgconn/stmtcache" + "github.com/jackc/pgx/v5/pgtype" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/copy_from.go b/copy_from.go index 52d69cdd..0bf3478f 100644 --- a/copy_from.go +++ b/copy_from.go @@ -8,7 +8,7 @@ import ( "time" "github.com/jackc/pgio" - "github.com/jackc/pgx/v4/pgconn" + "github.com/jackc/pgx/v5/pgconn" ) // CopyFromRows returns a CopyFromSource interface over the provided rows slice diff --git a/copy_from_test.go b/copy_from_test.go index b514fd8b..32644f38 100644 --- a/copy_from_test.go +++ b/copy_from_test.go @@ -8,8 +8,8 @@ import ( "testing" "time" - "github.com/jackc/pgx/v4" - "github.com/jackc/pgx/v4/pgconn" + "github.com/jackc/pgx/v5" + "github.com/jackc/pgx/v5/pgconn" "github.com/stretchr/testify/require" ) diff --git a/example_custom_type_test.go b/example_custom_type_test.go index 7723df6a..10014278 100644 --- a/example_custom_type_test.go +++ b/example_custom_type_test.go @@ -7,8 +7,8 @@ import ( "regexp" "strconv" - "github.com/jackc/pgx/v4" - "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v5" + "github.com/jackc/pgx/v5/pgtype" ) var pointRegexp *regexp.Regexp = regexp.MustCompile(`^\((.*),(.*)\)$`) diff --git a/example_json_test.go b/example_json_test.go index 33bd7519..017699b9 100644 --- a/example_json_test.go +++ b/example_json_test.go @@ -5,7 +5,7 @@ import ( "fmt" "os" - "github.com/jackc/pgx/v4" + "github.com/jackc/pgx/v5" ) func Example_JSON() { diff --git a/examples/chat/main.go b/examples/chat/main.go index 6be4ee1c..6e705fb6 100644 --- a/examples/chat/main.go +++ b/examples/chat/main.go @@ -6,7 +6,7 @@ import ( "fmt" "os" - "github.com/jackc/pgx/v4/pgxpool" + "github.com/jackc/pgx/v5/pgxpool" ) var pool *pgxpool.Pool diff --git a/examples/todo/main.go b/examples/todo/main.go index 9aa8c1cb..6c644ede 100644 --- a/examples/todo/main.go +++ b/examples/todo/main.go @@ -6,7 +6,7 @@ import ( "os" "strconv" - "github.com/jackc/pgx/v4" + "github.com/jackc/pgx/v5" ) var conn *pgx.Conn diff --git a/examples/url_shortener/main.go b/examples/url_shortener/main.go index c5e87eb3..cb474f32 100644 --- a/examples/url_shortener/main.go +++ b/examples/url_shortener/main.go @@ -6,9 +6,9 @@ import ( "net/http" "os" - "github.com/jackc/pgx/v4" - "github.com/jackc/pgx/v4/log/log15adapter" - "github.com/jackc/pgx/v4/pgxpool" + "github.com/jackc/pgx/v5" + "github.com/jackc/pgx/v5/log/log15adapter" + "github.com/jackc/pgx/v5/pgxpool" log "gopkg.in/inconshreveable/log15.v2" ) diff --git a/extended_query_builder.go b/extended_query_builder.go index 53ea75ff..1420a808 100644 --- a/extended_query_builder.go +++ b/extended_query_builder.go @@ -5,7 +5,7 @@ import ( "fmt" "reflect" - "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v5/pgtype" ) type extendedQueryBuilder struct { diff --git a/go.mod b/go.mod index ebcdc2f5..737db8cc 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/jackc/pgx/v4 +module github.com/jackc/pgx/v5 go 1.13 diff --git a/helper_test.go b/helper_test.go index 25280ac3..74c17431 100644 --- a/helper_test.go +++ b/helper_test.go @@ -7,8 +7,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/jackc/pgx/v4" - "github.com/jackc/pgx/v4/pgconn" + "github.com/jackc/pgx/v5" + "github.com/jackc/pgx/v5/pgconn" "github.com/stretchr/testify/require" ) diff --git a/internal/sanitize/sanitize_test.go b/internal/sanitize/sanitize_test.go index 344c46b0..acfac2ec 100644 --- a/internal/sanitize/sanitize_test.go +++ b/internal/sanitize/sanitize_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - "github.com/jackc/pgx/v4/internal/sanitize" + "github.com/jackc/pgx/v5/internal/sanitize" ) func TestNewQuery(t *testing.T) { diff --git a/large_objects_test.go b/large_objects_test.go index 167e50d3..e42a90e7 100644 --- a/large_objects_test.go +++ b/large_objects_test.go @@ -7,8 +7,8 @@ import ( "testing" "time" - "github.com/jackc/pgx/v4" - "github.com/jackc/pgx/v4/pgconn" + "github.com/jackc/pgx/v5" + "github.com/jackc/pgx/v5/pgconn" ) func TestLargeObjects(t *testing.T) { diff --git a/log/kitlogadapter/adapter.go b/log/kitlogadapter/adapter.go index 0a46197f..95fc6c49 100644 --- a/log/kitlogadapter/adapter.go +++ b/log/kitlogadapter/adapter.go @@ -5,7 +5,7 @@ import ( "github.com/go-kit/log" kitlevel "github.com/go-kit/log/level" - "github.com/jackc/pgx/v4" + "github.com/jackc/pgx/v5" ) type Logger struct { diff --git a/log/log15adapter/adapter.go b/log/log15adapter/adapter.go index 70608e33..dece65b4 100644 --- a/log/log15adapter/adapter.go +++ b/log/log15adapter/adapter.go @@ -5,7 +5,7 @@ package log15adapter import ( "context" - "github.com/jackc/pgx/v4" + "github.com/jackc/pgx/v5" ) // Log15Logger interface defines the subset of diff --git a/log/logrusadapter/adapter.go b/log/logrusadapter/adapter.go index e0cd6328..65a64230 100644 --- a/log/logrusadapter/adapter.go +++ b/log/logrusadapter/adapter.go @@ -5,7 +5,7 @@ package logrusadapter import ( "context" - "github.com/jackc/pgx/v4" + "github.com/jackc/pgx/v5" "github.com/sirupsen/logrus" ) diff --git a/log/testingadapter/adapter.go b/log/testingadapter/adapter.go index 3ddce5a1..aa1b4bd6 100644 --- a/log/testingadapter/adapter.go +++ b/log/testingadapter/adapter.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/jackc/pgx/v4" + "github.com/jackc/pgx/v5" ) // TestingLogger interface defines the subset of testing.TB methods used by this diff --git a/log/zapadapter/adapter.go b/log/zapadapter/adapter.go index ebc540aa..4dc47cd0 100644 --- a/log/zapadapter/adapter.go +++ b/log/zapadapter/adapter.go @@ -4,7 +4,7 @@ package zapadapter import ( "context" - "github.com/jackc/pgx/v4" + "github.com/jackc/pgx/v5" "go.uber.org/zap" "go.uber.org/zap/zapcore" ) diff --git a/log/zerologadapter/adapter.go b/log/zerologadapter/adapter.go index 6e8b4b94..b93036fe 100644 --- a/log/zerologadapter/adapter.go +++ b/log/zerologadapter/adapter.go @@ -4,7 +4,7 @@ package zerologadapter import ( "context" - "github.com/jackc/pgx/v4" + "github.com/jackc/pgx/v5" "github.com/rs/zerolog" ) diff --git a/log/zerologadapter/adapter_test.go b/log/zerologadapter/adapter_test.go index 3a11cbc0..152b2129 100644 --- a/log/zerologadapter/adapter_test.go +++ b/log/zerologadapter/adapter_test.go @@ -5,8 +5,8 @@ import ( "context" "testing" - "github.com/jackc/pgx/v4" - "github.com/jackc/pgx/v4/log/zerologadapter" + "github.com/jackc/pgx/v5" + "github.com/jackc/pgx/v5/log/zerologadapter" "github.com/rs/zerolog" ) diff --git a/messages.go b/messages.go index d7af6973..87c0aa22 100644 --- a/messages.go +++ b/messages.go @@ -3,7 +3,7 @@ package pgx import ( "database/sql/driver" - "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v5/pgtype" ) func convertDriverValuers(args []interface{}) ([]interface{}, error) { diff --git a/pgbouncer_test.go b/pgbouncer_test.go index abc349a1..eeae6db4 100644 --- a/pgbouncer_test.go +++ b/pgbouncer_test.go @@ -5,9 +5,9 @@ import ( "os" "testing" - "github.com/jackc/pgx/v4" - "github.com/jackc/pgx/v4/pgconn" - "github.com/jackc/pgx/v4/pgconn/stmtcache" + "github.com/jackc/pgx/v5" + "github.com/jackc/pgx/v5/pgconn" + "github.com/jackc/pgx/v5/pgconn/stmtcache" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pgconn/benchmark_test.go b/pgconn/benchmark_test.go index 48955cf6..088a9bd9 100644 --- a/pgconn/benchmark_test.go +++ b/pgconn/benchmark_test.go @@ -7,7 +7,7 @@ import ( "strings" "testing" - "github.com/jackc/pgx/v4/pgconn" + "github.com/jackc/pgx/v5/pgconn" "github.com/stretchr/testify/require" ) diff --git a/pgconn/config_test.go b/pgconn/config_test.go index 367c2d3e..3ffa384f 100644 --- a/pgconn/config_test.go +++ b/pgconn/config_test.go @@ -12,7 +12,7 @@ import ( "testing" "time" - "github.com/jackc/pgx/v4/pgconn" + "github.com/jackc/pgx/v5/pgconn" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pgconn/errors_test.go b/pgconn/errors_test.go index dafe4332..9d559346 100644 --- a/pgconn/errors_test.go +++ b/pgconn/errors_test.go @@ -3,7 +3,7 @@ package pgconn_test import ( "testing" - "github.com/jackc/pgx/v4/pgconn" + "github.com/jackc/pgx/v5/pgconn" "github.com/stretchr/testify/assert" ) diff --git a/pgconn/frontend_test.go b/pgconn/frontend_test.go index f1c3830c..9ea53b10 100644 --- a/pgconn/frontend_test.go +++ b/pgconn/frontend_test.go @@ -7,7 +7,7 @@ import ( "testing" "github.com/jackc/pgproto3/v2" - "github.com/jackc/pgx/v4/pgconn" + "github.com/jackc/pgx/v5/pgconn" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pgconn/helper_test.go b/pgconn/helper_test.go index eb4eaa6b..0696f4ce 100644 --- a/pgconn/helper_test.go +++ b/pgconn/helper_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - "github.com/jackc/pgx/v4/pgconn" + "github.com/jackc/pgx/v5/pgconn" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/pgconn/internal/ctxwatch/context_watcher_test.go b/pgconn/internal/ctxwatch/context_watcher_test.go index d9061812..39652995 100644 --- a/pgconn/internal/ctxwatch/context_watcher_test.go +++ b/pgconn/internal/ctxwatch/context_watcher_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - "github.com/jackc/pgx/v4/pgconn/internal/ctxwatch" + "github.com/jackc/pgx/v5/pgconn/internal/ctxwatch" "github.com/stretchr/testify/require" ) diff --git a/pgconn/pgconn.go b/pgconn/pgconn.go index 9b0e2735..52577bb0 100644 --- a/pgconn/pgconn.go +++ b/pgconn/pgconn.go @@ -17,7 +17,7 @@ import ( "github.com/jackc/pgio" "github.com/jackc/pgproto3/v2" - "github.com/jackc/pgx/v4/pgconn/internal/ctxwatch" + "github.com/jackc/pgx/v5/pgconn/internal/ctxwatch" ) const ( diff --git a/pgconn/pgconn_stress_test.go b/pgconn/pgconn_stress_test.go index 83847593..3d72964f 100644 --- a/pgconn/pgconn_stress_test.go +++ b/pgconn/pgconn_stress_test.go @@ -8,7 +8,7 @@ import ( "strconv" "testing" - "github.com/jackc/pgx/v4/pgconn" + "github.com/jackc/pgx/v5/pgconn" "github.com/stretchr/testify/require" ) diff --git a/pgconn/pgconn_test.go b/pgconn/pgconn_test.go index 79ded806..22f0c26f 100644 --- a/pgconn/pgconn_test.go +++ b/pgconn/pgconn_test.go @@ -20,7 +20,7 @@ import ( "github.com/jackc/pgmock" "github.com/jackc/pgproto3/v2" - "github.com/jackc/pgx/v4/pgconn" + "github.com/jackc/pgx/v5/pgconn" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pgconn/stmtcache/lru.go b/pgconn/stmtcache/lru.go index 7935a8c9..938ddee4 100644 --- a/pgconn/stmtcache/lru.go +++ b/pgconn/stmtcache/lru.go @@ -6,7 +6,7 @@ import ( "fmt" "sync/atomic" - "github.com/jackc/pgx/v4/pgconn" + "github.com/jackc/pgx/v5/pgconn" ) var lruCount uint64 diff --git a/pgconn/stmtcache/lru_test.go b/pgconn/stmtcache/lru_test.go index 9131defb..549e7670 100644 --- a/pgconn/stmtcache/lru_test.go +++ b/pgconn/stmtcache/lru_test.go @@ -9,8 +9,8 @@ import ( "testing" "time" - "github.com/jackc/pgx/v4/pgconn" - "github.com/jackc/pgx/v4/pgconn/stmtcache" + "github.com/jackc/pgx/v5/pgconn" + "github.com/jackc/pgx/v5/pgconn/stmtcache" "github.com/stretchr/testify/require" ) diff --git a/pgconn/stmtcache/stmtcache.go b/pgconn/stmtcache/stmtcache.go index 91538cf5..a2582019 100644 --- a/pgconn/stmtcache/stmtcache.go +++ b/pgconn/stmtcache/stmtcache.go @@ -4,7 +4,7 @@ package stmtcache import ( "context" - "github.com/jackc/pgx/v4/pgconn" + "github.com/jackc/pgx/v5/pgconn" ) const ( diff --git a/pgtype/aclitem_array_test.go b/pgtype/aclitem_array_test.go index 736d0967..bdae9b56 100644 --- a/pgtype/aclitem_array_test.go +++ b/pgtype/aclitem_array_test.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestACLItemArrayTranscode(t *testing.T) { diff --git a/pgtype/aclitem_test.go b/pgtype/aclitem_test.go index afc6a1e3..84388142 100644 --- a/pgtype/aclitem_test.go +++ b/pgtype/aclitem_test.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestACLItemTranscode(t *testing.T) { diff --git a/pgtype/array_test.go b/pgtype/array_test.go index 549467bf..77700ad6 100644 --- a/pgtype/array_test.go +++ b/pgtype/array_test.go @@ -4,7 +4,7 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v5/pgtype" "github.com/stretchr/testify/require" ) diff --git a/pgtype/array_type_test.go b/pgtype/array_type_test.go index 62b25dfa..3ea5bc79 100644 --- a/pgtype/array_type_test.go +++ b/pgtype/array_type_test.go @@ -4,8 +4,8 @@ import ( "context" "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" "github.com/stretchr/testify/require" ) diff --git a/pgtype/bit_test.go b/pgtype/bit_test.go index 51c12765..2f07c3c9 100644 --- a/pgtype/bit_test.go +++ b/pgtype/bit_test.go @@ -3,8 +3,8 @@ package pgtype_test import ( "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestBitTranscode(t *testing.T) { diff --git a/pgtype/bool_array_test.go b/pgtype/bool_array_test.go index 9278c864..7de5612a 100644 --- a/pgtype/bool_array_test.go +++ b/pgtype/bool_array_test.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestBoolArrayTranscode(t *testing.T) { diff --git a/pgtype/bool_test.go b/pgtype/bool_test.go index f323c5e7..9a07491f 100644 --- a/pgtype/bool_test.go +++ b/pgtype/bool_test.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestBoolTranscode(t *testing.T) { diff --git a/pgtype/box_test.go b/pgtype/box_test.go index d6a928c9..481723b5 100644 --- a/pgtype/box_test.go +++ b/pgtype/box_test.go @@ -3,8 +3,8 @@ package pgtype_test import ( "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestBoxTranscode(t *testing.T) { diff --git a/pgtype/bpchar_array_test.go b/pgtype/bpchar_array_test.go index 4714b261..0118ad7d 100644 --- a/pgtype/bpchar_array_test.go +++ b/pgtype/bpchar_array_test.go @@ -3,8 +3,8 @@ package pgtype_test import ( "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestBPCharArrayTranscode(t *testing.T) { diff --git a/pgtype/bpchar_test.go b/pgtype/bpchar_test.go index 68fbfc9f..ead26220 100644 --- a/pgtype/bpchar_test.go +++ b/pgtype/bpchar_test.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestChar3Transcode(t *testing.T) { diff --git a/pgtype/bytea_array_test.go b/pgtype/bytea_array_test.go index d081db11..08b69c26 100644 --- a/pgtype/bytea_array_test.go +++ b/pgtype/bytea_array_test.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestByteaArrayTranscode(t *testing.T) { diff --git a/pgtype/bytea_test.go b/pgtype/bytea_test.go index b87b3c96..21751e24 100644 --- a/pgtype/bytea_test.go +++ b/pgtype/bytea_test.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestByteaTranscode(t *testing.T) { diff --git a/pgtype/cid_test.go b/pgtype/cid_test.go index e915e534..3d3ad2a5 100644 --- a/pgtype/cid_test.go +++ b/pgtype/cid_test.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestCIDTranscode(t *testing.T) { diff --git a/pgtype/cidr_array_test.go b/pgtype/cidr_array_test.go index 93d3933d..550bf9d1 100644 --- a/pgtype/cidr_array_test.go +++ b/pgtype/cidr_array_test.go @@ -5,8 +5,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestCIDRArrayTranscode(t *testing.T) { diff --git a/pgtype/circle_test.go b/pgtype/circle_test.go index 2e5a8c86..8f39644b 100644 --- a/pgtype/circle_test.go +++ b/pgtype/circle_test.go @@ -3,8 +3,8 @@ package pgtype_test import ( "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestCircleTranscode(t *testing.T) { diff --git a/pgtype/composite_bench_test.go b/pgtype/composite_bench_test.go index 92330905..ef57709b 100644 --- a/pgtype/composite_bench_test.go +++ b/pgtype/composite_bench_test.go @@ -4,7 +4,7 @@ import ( "testing" "github.com/jackc/pgio" - "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v5/pgtype" "github.com/stretchr/testify/require" ) diff --git a/pgtype/composite_fields_test.go b/pgtype/composite_fields_test.go index 07b3954e..e73d8441 100644 --- a/pgtype/composite_fields_test.go +++ b/pgtype/composite_fields_test.go @@ -4,9 +4,9 @@ import ( "context" "testing" - "github.com/jackc/pgx/v4" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pgtype/composite_type_test.go b/pgtype/composite_type_test.go index 80dd4a5c..a41ad0f4 100644 --- a/pgtype/composite_type_test.go +++ b/pgtype/composite_type_test.go @@ -6,9 +6,9 @@ import ( "os" "testing" - pgx "github.com/jackc/pgx/v4" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + pgx "github.com/jackc/pgx/v5" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pgtype/custom_composite_test.go b/pgtype/custom_composite_test.go index 0cc14442..e5f2166e 100644 --- a/pgtype/custom_composite_test.go +++ b/pgtype/custom_composite_test.go @@ -6,8 +6,8 @@ import ( "fmt" "os" - pgx "github.com/jackc/pgx/v4" - "github.com/jackc/pgx/v4/pgtype" + pgx "github.com/jackc/pgx/v5" + "github.com/jackc/pgx/v5/pgtype" ) type MyType struct { diff --git a/pgtype/date_array_test.go b/pgtype/date_array_test.go index 93e423a0..39ee32ce 100644 --- a/pgtype/date_array_test.go +++ b/pgtype/date_array_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestDateArrayTranscode(t *testing.T) { diff --git a/pgtype/date_test.go b/pgtype/date_test.go index 0df84468..caccfc47 100644 --- a/pgtype/date_test.go +++ b/pgtype/date_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestDateTranscode(t *testing.T) { diff --git a/pgtype/daterange_test.go b/pgtype/daterange_test.go index d0bb8d60..a6501372 100644 --- a/pgtype/daterange_test.go +++ b/pgtype/daterange_test.go @@ -4,8 +4,8 @@ import ( "testing" "time" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestDaterangeTranscode(t *testing.T) { diff --git a/pgtype/enum_array_test.go b/pgtype/enum_array_test.go index 7b9c4d23..6e49aaaf 100644 --- a/pgtype/enum_array_test.go +++ b/pgtype/enum_array_test.go @@ -5,8 +5,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestEnumArrayTranscode(t *testing.T) { diff --git a/pgtype/enum_type_test.go b/pgtype/enum_type_test.go index 965f713a..903b742f 100644 --- a/pgtype/enum_type_test.go +++ b/pgtype/enum_type_test.go @@ -5,9 +5,9 @@ import ( "context" "testing" - "github.com/jackc/pgx/v4" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pgtype/float4_array_test.go b/pgtype/float4_array_test.go index d28cd38c..ecd65206 100644 --- a/pgtype/float4_array_test.go +++ b/pgtype/float4_array_test.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestFloat4ArrayTranscode(t *testing.T) { diff --git a/pgtype/float4_test.go b/pgtype/float4_test.go index 3ad480f5..aab6e980 100644 --- a/pgtype/float4_test.go +++ b/pgtype/float4_test.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestFloat4Transcode(t *testing.T) { diff --git a/pgtype/float8_array_test.go b/pgtype/float8_array_test.go index 6fc85993..66a10784 100644 --- a/pgtype/float8_array_test.go +++ b/pgtype/float8_array_test.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestFloat8ArrayTranscode(t *testing.T) { diff --git a/pgtype/float8_test.go b/pgtype/float8_test.go index 2bc8de0c..e7bd4444 100644 --- a/pgtype/float8_test.go +++ b/pgtype/float8_test.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestFloat8Transcode(t *testing.T) { diff --git a/pgtype/hstore_array_test.go b/pgtype/hstore_array_test.go index b164f598..7912b626 100644 --- a/pgtype/hstore_array_test.go +++ b/pgtype/hstore_array_test.go @@ -5,9 +5,9 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/v4" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestHstoreArrayTranscode(t *testing.T) { diff --git a/pgtype/hstore_test.go b/pgtype/hstore_test.go index 6faf7496..dd80f0c5 100644 --- a/pgtype/hstore_test.go +++ b/pgtype/hstore_test.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestHstoreTranscode(t *testing.T) { diff --git a/pgtype/inet_array_test.go b/pgtype/inet_array_test.go index b111746d..da7ee975 100644 --- a/pgtype/inet_array_test.go +++ b/pgtype/inet_array_test.go @@ -5,8 +5,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestInetArrayTranscode(t *testing.T) { diff --git a/pgtype/inet_test.go b/pgtype/inet_test.go index 56705e4d..d4716479 100644 --- a/pgtype/inet_test.go +++ b/pgtype/inet_test.go @@ -5,8 +5,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" "github.com/stretchr/testify/assert" ) diff --git a/pgtype/int2_array_test.go b/pgtype/int2_array_test.go index e5366edd..110968fc 100644 --- a/pgtype/int2_array_test.go +++ b/pgtype/int2_array_test.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestInt2ArrayTranscode(t *testing.T) { diff --git a/pgtype/int2_test.go b/pgtype/int2_test.go index 26f43eec..58dcd141 100644 --- a/pgtype/int2_test.go +++ b/pgtype/int2_test.go @@ -5,8 +5,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestInt2Transcode(t *testing.T) { diff --git a/pgtype/int4_array_test.go b/pgtype/int4_array_test.go index bcabe8ca..906e4775 100644 --- a/pgtype/int4_array_test.go +++ b/pgtype/int4_array_test.go @@ -5,8 +5,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestInt4ArrayTranscode(t *testing.T) { diff --git a/pgtype/int4_test.go b/pgtype/int4_test.go index cdff4b44..118c3ac5 100644 --- a/pgtype/int4_test.go +++ b/pgtype/int4_test.go @@ -5,8 +5,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestInt4Transcode(t *testing.T) { diff --git a/pgtype/int4range_test.go b/pgtype/int4range_test.go index a45e4779..1a11e039 100644 --- a/pgtype/int4range_test.go +++ b/pgtype/int4range_test.go @@ -3,8 +3,8 @@ package pgtype_test import ( "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestInt4rangeTranscode(t *testing.T) { diff --git a/pgtype/int8_array_test.go b/pgtype/int8_array_test.go index c4de8bb1..2d875b24 100644 --- a/pgtype/int8_array_test.go +++ b/pgtype/int8_array_test.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestInt8ArrayTranscode(t *testing.T) { diff --git a/pgtype/int8_test.go b/pgtype/int8_test.go index 9f96a1e3..657eb702 100644 --- a/pgtype/int8_test.go +++ b/pgtype/int8_test.go @@ -5,8 +5,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestInt8Transcode(t *testing.T) { diff --git a/pgtype/int8range_test.go b/pgtype/int8range_test.go index aefa2f53..1fab1caa 100644 --- a/pgtype/int8range_test.go +++ b/pgtype/int8range_test.go @@ -3,8 +3,8 @@ package pgtype_test import ( "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestInt8rangeTranscode(t *testing.T) { diff --git a/pgtype/integration_benchmark_test.go b/pgtype/integration_benchmark_test.go index 0ee87ba3..ad9c0598 100644 --- a/pgtype/integration_benchmark_test.go +++ b/pgtype/integration_benchmark_test.go @@ -6,9 +6,9 @@ import ( "context" "testing" - "github.com/jackc/pgx/v4" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func BenchmarkQueryTextFormatDecode_PG_int4_to_Go_int16_1_rows_1_columns(b *testing.B) { diff --git a/pgtype/integration_benchmark_test.go.erb b/pgtype/integration_benchmark_test.go.erb index f642e6ca..1b091364 100644 --- a/pgtype/integration_benchmark_test.go.erb +++ b/pgtype/integration_benchmark_test.go.erb @@ -6,8 +6,8 @@ import ( "context" "testing" - "github.com/jackc/pgx/v4/pgtype/testutil" - "github.com/jackc/pgx/v4" + "github.com/jackc/pgx/v5/pgtype/testutil" + "github.com/jackc/pgx/v5" ) <% diff --git a/pgtype/interval_test.go b/pgtype/interval_test.go index 6754a222..a8241bf6 100644 --- a/pgtype/interval_test.go +++ b/pgtype/interval_test.go @@ -4,8 +4,8 @@ import ( "testing" "time" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pgtype/json_test.go b/pgtype/json_test.go index a42b7ab4..cb5162d3 100644 --- a/pgtype/json_test.go +++ b/pgtype/json_test.go @@ -5,8 +5,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestJSONTranscode(t *testing.T) { diff --git a/pgtype/jsonb_array_test.go b/pgtype/jsonb_array_test.go index 172892bc..0fc4d40e 100644 --- a/pgtype/jsonb_array_test.go +++ b/pgtype/jsonb_array_test.go @@ -3,8 +3,8 @@ package pgtype_test import ( "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestJSONBArrayTranscode(t *testing.T) { diff --git a/pgtype/jsonb_test.go b/pgtype/jsonb_test.go index 242014f3..3a0d62c2 100644 --- a/pgtype/jsonb_test.go +++ b/pgtype/jsonb_test.go @@ -5,8 +5,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestJSONBTranscode(t *testing.T) { diff --git a/pgtype/line_test.go b/pgtype/line_test.go index 6f38d85f..b171a7a5 100644 --- a/pgtype/line_test.go +++ b/pgtype/line_test.go @@ -4,8 +4,8 @@ import ( "context" "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestLineTranscode(t *testing.T) { diff --git a/pgtype/lseg_test.go b/pgtype/lseg_test.go index 9122f76b..ce128784 100644 --- a/pgtype/lseg_test.go +++ b/pgtype/lseg_test.go @@ -3,8 +3,8 @@ package pgtype_test import ( "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestLsegTranscode(t *testing.T) { diff --git a/pgtype/macaddr_array_test.go b/pgtype/macaddr_array_test.go index 4941ad80..ac76a052 100644 --- a/pgtype/macaddr_array_test.go +++ b/pgtype/macaddr_array_test.go @@ -5,8 +5,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestMacaddrArrayTranscode(t *testing.T) { diff --git a/pgtype/macaddr_test.go b/pgtype/macaddr_test.go index 9a78521b..5b9d8d88 100644 --- a/pgtype/macaddr_test.go +++ b/pgtype/macaddr_test.go @@ -6,8 +6,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestMacaddrTranscode(t *testing.T) { diff --git a/pgtype/name_test.go b/pgtype/name_test.go index b71ea490..89b16579 100644 --- a/pgtype/name_test.go +++ b/pgtype/name_test.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestNameTranscode(t *testing.T) { diff --git a/pgtype/numeric_array_test.go b/pgtype/numeric_array_test.go index 82a4fb6c..4542ed3e 100644 --- a/pgtype/numeric_array_test.go +++ b/pgtype/numeric_array_test.go @@ -6,8 +6,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestNumericArrayTranscode(t *testing.T) { diff --git a/pgtype/numeric_test.go b/pgtype/numeric_test.go index 22bd22ef..ff53d92b 100644 --- a/pgtype/numeric_test.go +++ b/pgtype/numeric_test.go @@ -9,8 +9,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" "github.com/stretchr/testify/require" ) @@ -289,7 +289,7 @@ func TestNumericAssignTo(t *testing.T) { {src: &pgtype.Numeric{Int: big.NewInt(42), Valid: true}, dst: &_i8, expected: _int8(42)}, {src: &pgtype.Numeric{Int: big.NewInt(0)}, dst: &pi8, expected: ((*int8)(nil))}, {src: &pgtype.Numeric{Int: big.NewInt(0)}, dst: &_pi8, expected: ((*_int8)(nil))}, - {src: &pgtype.Numeric{Int: big.NewInt(1006), Exp: -2, Valid: true}, dst: &f64, expected: float64(10.06)}, // https://github.com/jackc/pgx/v4/pgtype/issues/27 + {src: &pgtype.Numeric{Int: big.NewInt(1006), Exp: -2, Valid: true}, dst: &f64, expected: float64(10.06)}, // https://github.com/jackc/pgx/v5/pgtype/issues/27 {src: &pgtype.Numeric{Valid: true, NaN: true}, dst: &f64, expected: math.NaN()}, {src: &pgtype.Numeric{Valid: true, NaN: true}, dst: &f32, expected: float32(math.NaN())}, {src: &pgtype.Numeric{Valid: true, InfinityModifier: pgtype.Infinity}, dst: &f64, expected: math.Inf(1)}, diff --git a/pgtype/numrange_test.go b/pgtype/numrange_test.go index 3e89dc73..a7792faf 100644 --- a/pgtype/numrange_test.go +++ b/pgtype/numrange_test.go @@ -4,8 +4,8 @@ import ( "math/big" "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestNumrangeTranscode(t *testing.T) { diff --git a/pgtype/oid_value_test.go b/pgtype/oid_value_test.go index e3d2e014..aecfc149 100644 --- a/pgtype/oid_value_test.go +++ b/pgtype/oid_value_test.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestOIDValueTranscode(t *testing.T) { diff --git a/pgtype/path_test.go b/pgtype/path_test.go index af410540..8a218fe1 100644 --- a/pgtype/path_test.go +++ b/pgtype/path_test.go @@ -3,8 +3,8 @@ package pgtype_test import ( "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestPathTranscode(t *testing.T) { diff --git a/pgtype/pgtype_test.go b/pgtype/pgtype_test.go index 6540842c..17b8afe1 100644 --- a/pgtype/pgtype_test.go +++ b/pgtype/pgtype_test.go @@ -7,9 +7,9 @@ import ( "net" "testing" - "github.com/jackc/pgx/v4" - "github.com/jackc/pgx/v4/pgtype" - _ "github.com/jackc/pgx/v4/stdlib" + "github.com/jackc/pgx/v5" + "github.com/jackc/pgx/v5/pgtype" + _ "github.com/jackc/pgx/v5/stdlib" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pgtype/pgxtype/pgxtype.go b/pgtype/pgxtype/pgxtype.go index a16c0389..ba14c094 100644 --- a/pgtype/pgxtype/pgxtype.go +++ b/pgtype/pgxtype/pgxtype.go @@ -4,9 +4,9 @@ import ( "context" "errors" - "github.com/jackc/pgx/v4" - "github.com/jackc/pgx/v4/pgconn" - "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v5" + "github.com/jackc/pgx/v5/pgconn" + "github.com/jackc/pgx/v5/pgtype" ) type Querier interface { diff --git a/pgtype/point_test.go b/pgtype/point_test.go index b8681cd5..bb4c2126 100644 --- a/pgtype/point_test.go +++ b/pgtype/point_test.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" "github.com/stretchr/testify/require" ) diff --git a/pgtype/polygon_test.go b/pgtype/polygon_test.go index 25cbd7dc..4e7f69ce 100644 --- a/pgtype/polygon_test.go +++ b/pgtype/polygon_test.go @@ -3,8 +3,8 @@ package pgtype_test import ( "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestPolygonTranscode(t *testing.T) { diff --git a/pgtype/qchar_test.go b/pgtype/qchar_test.go index a27cb098..cb9b6786 100644 --- a/pgtype/qchar_test.go +++ b/pgtype/qchar_test.go @@ -5,8 +5,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestQCharTranscode(t *testing.T) { diff --git a/pgtype/record_test.go b/pgtype/record_test.go index 6e052b71..921f0975 100644 --- a/pgtype/record_test.go +++ b/pgtype/record_test.go @@ -6,9 +6,9 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/v4" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) var recordTests = []struct { diff --git a/pgtype/testutil/testutil.go b/pgtype/testutil/testutil.go index 6007d7a4..bfe9b01f 100644 --- a/pgtype/testutil/testutil.go +++ b/pgtype/testutil/testutil.go @@ -8,9 +8,9 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/v4" - "github.com/jackc/pgx/v4/pgtype" - _ "github.com/jackc/pgx/v4/stdlib" + "github.com/jackc/pgx/v5" + "github.com/jackc/pgx/v5/pgtype" + _ "github.com/jackc/pgx/v5/stdlib" ) func MustConnectDatabaseSQL(t testing.TB, driverName string) *sql.DB { diff --git a/pgtype/text_array_test.go b/pgtype/text_array_test.go index ce4b0d20..4fa1c39e 100644 --- a/pgtype/text_array_test.go +++ b/pgtype/text_array_test.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pgtype/text_test.go b/pgtype/text_test.go index 17201764..dca6af4a 100644 --- a/pgtype/text_test.go +++ b/pgtype/text_test.go @@ -5,8 +5,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestTextTranscode(t *testing.T) { diff --git a/pgtype/tid_test.go b/pgtype/tid_test.go index 133e5a35..ef24005a 100644 --- a/pgtype/tid_test.go +++ b/pgtype/tid_test.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestTIDTranscode(t *testing.T) { diff --git a/pgtype/time_test.go b/pgtype/time_test.go index 008b1448..f710ed03 100644 --- a/pgtype/time_test.go +++ b/pgtype/time_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestTimeTranscode(t *testing.T) { diff --git a/pgtype/timestamp_array_test.go b/pgtype/timestamp_array_test.go index c354f0cf..f78bf14e 100644 --- a/pgtype/timestamp_array_test.go +++ b/pgtype/timestamp_array_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestTimestampArrayTranscode(t *testing.T) { diff --git a/pgtype/timestamp_test.go b/pgtype/timestamp_test.go index f906462d..00e1b2c7 100644 --- a/pgtype/timestamp_test.go +++ b/pgtype/timestamp_test.go @@ -6,8 +6,8 @@ import ( "testing" "time" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" "github.com/stretchr/testify/require" ) diff --git a/pgtype/timestamptz_array_test.go b/pgtype/timestamptz_array_test.go index fd40cd35..e00b7d7f 100644 --- a/pgtype/timestamptz_array_test.go +++ b/pgtype/timestamptz_array_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestTimestamptzArrayTranscode(t *testing.T) { diff --git a/pgtype/timestamptz_test.go b/pgtype/timestamptz_test.go index 8815d363..6cfe9a53 100644 --- a/pgtype/timestamptz_test.go +++ b/pgtype/timestamptz_test.go @@ -6,8 +6,8 @@ import ( "testing" "time" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" "github.com/stretchr/testify/require" ) diff --git a/pgtype/tsrange_test.go b/pgtype/tsrange_test.go index f24f824b..f7c4dc84 100644 --- a/pgtype/tsrange_test.go +++ b/pgtype/tsrange_test.go @@ -4,8 +4,8 @@ import ( "testing" "time" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestTsrangeTranscode(t *testing.T) { diff --git a/pgtype/tstzrange_test.go b/pgtype/tstzrange_test.go index bf604ed5..ab1ab44f 100644 --- a/pgtype/tstzrange_test.go +++ b/pgtype/tstzrange_test.go @@ -4,8 +4,8 @@ import ( "testing" "time" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" "github.com/stretchr/testify/require" ) diff --git a/pgtype/uuid_array_test.go b/pgtype/uuid_array_test.go index b4ec2f86..b432d0f8 100644 --- a/pgtype/uuid_array_test.go +++ b/pgtype/uuid_array_test.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestUUIDArrayTranscode(t *testing.T) { diff --git a/pgtype/uuid_test.go b/pgtype/uuid_test.go index 036c0dd8..9701db74 100644 --- a/pgtype/uuid_test.go +++ b/pgtype/uuid_test.go @@ -5,8 +5,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" "github.com/stretchr/testify/require" ) diff --git a/pgtype/varbit_test.go b/pgtype/varbit_test.go index 1ca5357b..031d5fa8 100644 --- a/pgtype/varbit_test.go +++ b/pgtype/varbit_test.go @@ -3,8 +3,8 @@ package pgtype_test import ( "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestVarbitTranscode(t *testing.T) { diff --git a/pgtype/varchar_array_test.go b/pgtype/varchar_array_test.go index c45162a0..2d437274 100644 --- a/pgtype/varchar_array_test.go +++ b/pgtype/varchar_array_test.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestVarcharArrayTranscode(t *testing.T) { diff --git a/pgtype/xid_test.go b/pgtype/xid_test.go index 5b30753a..ee11fa41 100644 --- a/pgtype/xid_test.go +++ b/pgtype/xid_test.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/v4/pgtype" - "github.com/jackc/pgx/v4/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype" + "github.com/jackc/pgx/v5/pgtype/testutil" ) func TestXIDTranscode(t *testing.T) { diff --git a/pgtype/zeronull/float8.go b/pgtype/zeronull/float8.go index 3d9d4d22..a4efb1ed 100644 --- a/pgtype/zeronull/float8.go +++ b/pgtype/zeronull/float8.go @@ -3,7 +3,7 @@ package zeronull import ( "database/sql/driver" - "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v5/pgtype" ) type Float8 float64 diff --git a/pgtype/zeronull/float8_test.go b/pgtype/zeronull/float8_test.go index cdc51245..b0331faa 100644 --- a/pgtype/zeronull/float8_test.go +++ b/pgtype/zeronull/float8_test.go @@ -3,8 +3,8 @@ package zeronull_test import ( "testing" - "github.com/jackc/pgx/v4/pgtype/testutil" - "github.com/jackc/pgx/v4/pgtype/zeronull" + "github.com/jackc/pgx/v5/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype/zeronull" ) func TestFloat8Transcode(t *testing.T) { diff --git a/pgtype/zeronull/int2.go b/pgtype/zeronull/int2.go index 011e96d5..81e89ab3 100644 --- a/pgtype/zeronull/int2.go +++ b/pgtype/zeronull/int2.go @@ -3,7 +3,7 @@ package zeronull import ( "database/sql/driver" - "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v5/pgtype" ) type Int2 int16 diff --git a/pgtype/zeronull/int2_test.go b/pgtype/zeronull/int2_test.go index 9cbd75db..ff78a6e6 100644 --- a/pgtype/zeronull/int2_test.go +++ b/pgtype/zeronull/int2_test.go @@ -3,8 +3,8 @@ package zeronull_test import ( "testing" - "github.com/jackc/pgx/v4/pgtype/testutil" - "github.com/jackc/pgx/v4/pgtype/zeronull" + "github.com/jackc/pgx/v5/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype/zeronull" ) func TestInt2Transcode(t *testing.T) { diff --git a/pgtype/zeronull/int4.go b/pgtype/zeronull/int4.go index 9d34c163..4e06435a 100644 --- a/pgtype/zeronull/int4.go +++ b/pgtype/zeronull/int4.go @@ -3,7 +3,7 @@ package zeronull import ( "database/sql/driver" - "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v5/pgtype" ) type Int4 int32 diff --git a/pgtype/zeronull/int4_test.go b/pgtype/zeronull/int4_test.go index 456f15d2..3510aa9d 100644 --- a/pgtype/zeronull/int4_test.go +++ b/pgtype/zeronull/int4_test.go @@ -3,8 +3,8 @@ package zeronull_test import ( "testing" - "github.com/jackc/pgx/v4/pgtype/testutil" - "github.com/jackc/pgx/v4/pgtype/zeronull" + "github.com/jackc/pgx/v5/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype/zeronull" ) func TestInt4Transcode(t *testing.T) { diff --git a/pgtype/zeronull/int8.go b/pgtype/zeronull/int8.go index 185fdb8f..3c89a1ec 100644 --- a/pgtype/zeronull/int8.go +++ b/pgtype/zeronull/int8.go @@ -3,7 +3,7 @@ package zeronull import ( "database/sql/driver" - "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v5/pgtype" ) type Int8 int64 diff --git a/pgtype/zeronull/int8_test.go b/pgtype/zeronull/int8_test.go index ca261d36..97fe9cd0 100644 --- a/pgtype/zeronull/int8_test.go +++ b/pgtype/zeronull/int8_test.go @@ -3,8 +3,8 @@ package zeronull_test import ( "testing" - "github.com/jackc/pgx/v4/pgtype/testutil" - "github.com/jackc/pgx/v4/pgtype/zeronull" + "github.com/jackc/pgx/v5/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype/zeronull" ) func TestInt8Transcode(t *testing.T) { diff --git a/pgtype/zeronull/text.go b/pgtype/zeronull/text.go index 5fc9d94b..33ce367f 100644 --- a/pgtype/zeronull/text.go +++ b/pgtype/zeronull/text.go @@ -3,7 +3,7 @@ package zeronull import ( "database/sql/driver" - "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v5/pgtype" ) type Text string diff --git a/pgtype/zeronull/text_test.go b/pgtype/zeronull/text_test.go index 8595253c..e4293024 100644 --- a/pgtype/zeronull/text_test.go +++ b/pgtype/zeronull/text_test.go @@ -3,8 +3,8 @@ package zeronull_test import ( "testing" - "github.com/jackc/pgx/v4/pgtype/testutil" - "github.com/jackc/pgx/v4/pgtype/zeronull" + "github.com/jackc/pgx/v5/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype/zeronull" ) func TestTextTranscode(t *testing.T) { diff --git a/pgtype/zeronull/timestamp.go b/pgtype/zeronull/timestamp.go index 193bc959..d96dbf08 100644 --- a/pgtype/zeronull/timestamp.go +++ b/pgtype/zeronull/timestamp.go @@ -4,7 +4,7 @@ import ( "database/sql/driver" "time" - "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v5/pgtype" ) type Timestamp time.Time diff --git a/pgtype/zeronull/timestamp_test.go b/pgtype/zeronull/timestamp_test.go index 787c6de9..2eb072c6 100644 --- a/pgtype/zeronull/timestamp_test.go +++ b/pgtype/zeronull/timestamp_test.go @@ -4,8 +4,8 @@ import ( "testing" "time" - "github.com/jackc/pgx/v4/pgtype/testutil" - "github.com/jackc/pgx/v4/pgtype/zeronull" + "github.com/jackc/pgx/v5/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype/zeronull" ) func TestTimestampTranscode(t *testing.T) { diff --git a/pgtype/zeronull/timestamptz.go b/pgtype/zeronull/timestamptz.go index 5ecefe64..46448607 100644 --- a/pgtype/zeronull/timestamptz.go +++ b/pgtype/zeronull/timestamptz.go @@ -4,7 +4,7 @@ import ( "database/sql/driver" "time" - "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v5/pgtype" ) type Timestamptz time.Time diff --git a/pgtype/zeronull/timestamptz_test.go b/pgtype/zeronull/timestamptz_test.go index dcbd0d58..e288b9e8 100644 --- a/pgtype/zeronull/timestamptz_test.go +++ b/pgtype/zeronull/timestamptz_test.go @@ -4,8 +4,8 @@ import ( "testing" "time" - "github.com/jackc/pgx/v4/pgtype/testutil" - "github.com/jackc/pgx/v4/pgtype/zeronull" + "github.com/jackc/pgx/v5/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype/zeronull" ) func TestTimestamptzTranscode(t *testing.T) { diff --git a/pgtype/zeronull/uuid.go b/pgtype/zeronull/uuid.go index 2e54a933..8c0978b3 100644 --- a/pgtype/zeronull/uuid.go +++ b/pgtype/zeronull/uuid.go @@ -3,7 +3,7 @@ package zeronull import ( "database/sql/driver" - "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v5/pgtype" ) type UUID [16]byte diff --git a/pgtype/zeronull/uuid_test.go b/pgtype/zeronull/uuid_test.go index e79503c6..913698d9 100644 --- a/pgtype/zeronull/uuid_test.go +++ b/pgtype/zeronull/uuid_test.go @@ -3,8 +3,8 @@ package zeronull_test import ( "testing" - "github.com/jackc/pgx/v4/pgtype/testutil" - "github.com/jackc/pgx/v4/pgtype/zeronull" + "github.com/jackc/pgx/v5/pgtype/testutil" + "github.com/jackc/pgx/v5/pgtype/zeronull" ) func TestUUIDTranscode(t *testing.T) { diff --git a/pgxpool/batch_results.go b/pgxpool/batch_results.go index 42f597a5..8bec35cb 100644 --- a/pgxpool/batch_results.go +++ b/pgxpool/batch_results.go @@ -1,8 +1,8 @@ package pgxpool import ( - "github.com/jackc/pgx/v4" - "github.com/jackc/pgx/v4/pgconn" + "github.com/jackc/pgx/v5" + "github.com/jackc/pgx/v5/pgconn" ) type errBatchResults struct { diff --git a/pgxpool/bench_test.go b/pgxpool/bench_test.go index 9ec63ca3..704371db 100644 --- a/pgxpool/bench_test.go +++ b/pgxpool/bench_test.go @@ -5,8 +5,8 @@ import ( "os" "testing" - "github.com/jackc/pgx/v4" - "github.com/jackc/pgx/v4/pgxpool" + "github.com/jackc/pgx/v5" + "github.com/jackc/pgx/v5/pgxpool" "github.com/stretchr/testify/require" ) diff --git a/pgxpool/common_test.go b/pgxpool/common_test.go index 8ef85052..c6f3b77b 100644 --- a/pgxpool/common_test.go +++ b/pgxpool/common_test.go @@ -5,10 +5,10 @@ import ( "testing" "time" - "github.com/jackc/pgx/v4/pgxpool" + "github.com/jackc/pgx/v5/pgxpool" - "github.com/jackc/pgx/v4" - "github.com/jackc/pgx/v4/pgconn" + "github.com/jackc/pgx/v5" + "github.com/jackc/pgx/v5/pgconn" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pgxpool/conn.go b/pgxpool/conn.go index fee1ff2b..8798db4b 100644 --- a/pgxpool/conn.go +++ b/pgxpool/conn.go @@ -4,8 +4,8 @@ import ( "context" "time" - "github.com/jackc/pgx/v4" - "github.com/jackc/pgx/v4/pgconn" + "github.com/jackc/pgx/v5" + "github.com/jackc/pgx/v5/pgconn" "github.com/jackc/puddle" ) diff --git a/pgxpool/conn_test.go b/pgxpool/conn_test.go index c03ae13e..ff34f969 100644 --- a/pgxpool/conn_test.go +++ b/pgxpool/conn_test.go @@ -5,7 +5,7 @@ import ( "os" "testing" - "github.com/jackc/pgx/v4/pgxpool" + "github.com/jackc/pgx/v5/pgxpool" "github.com/stretchr/testify/require" ) diff --git a/pgxpool/pool.go b/pgxpool/pool.go index 84d05ad9..41fb4d5b 100644 --- a/pgxpool/pool.go +++ b/pgxpool/pool.go @@ -8,8 +8,8 @@ import ( "sync" "time" - "github.com/jackc/pgx/v4" - "github.com/jackc/pgx/v4/pgconn" + "github.com/jackc/pgx/v5" + "github.com/jackc/pgx/v5/pgconn" "github.com/jackc/puddle" ) diff --git a/pgxpool/pool_test.go b/pgxpool/pool_test.go index 54b688a1..20586b81 100644 --- a/pgxpool/pool_test.go +++ b/pgxpool/pool_test.go @@ -9,8 +9,8 @@ import ( "testing" "time" - "github.com/jackc/pgx/v4" - "github.com/jackc/pgx/v4/pgxpool" + "github.com/jackc/pgx/v5" + "github.com/jackc/pgx/v5/pgxpool" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pgxpool/rows.go b/pgxpool/rows.go index cc45c76f..0c97dc91 100644 --- a/pgxpool/rows.go +++ b/pgxpool/rows.go @@ -2,8 +2,8 @@ package pgxpool import ( "github.com/jackc/pgproto3/v2" - "github.com/jackc/pgx/v4" - "github.com/jackc/pgx/v4/pgconn" + "github.com/jackc/pgx/v5" + "github.com/jackc/pgx/v5/pgconn" ) type errRows struct { diff --git a/pgxpool/tx.go b/pgxpool/tx.go index 962b8725..a82b2176 100644 --- a/pgxpool/tx.go +++ b/pgxpool/tx.go @@ -3,8 +3,8 @@ package pgxpool import ( "context" - "github.com/jackc/pgx/v4" - "github.com/jackc/pgx/v4/pgconn" + "github.com/jackc/pgx/v5" + "github.com/jackc/pgx/v5/pgconn" ) // Tx represents a database transaction acquired from a Pool. diff --git a/pgxpool/tx_test.go b/pgxpool/tx_test.go index d66ad338..e32d3efe 100644 --- a/pgxpool/tx_test.go +++ b/pgxpool/tx_test.go @@ -5,7 +5,7 @@ import ( "os" "testing" - "github.com/jackc/pgx/v4/pgxpool" + "github.com/jackc/pgx/v5/pgxpool" "github.com/stretchr/testify/require" ) diff --git a/query_test.go b/query_test.go index 393235b7..7157e5dd 100644 --- a/query_test.go +++ b/query_test.go @@ -15,10 +15,10 @@ import ( "github.com/cockroachdb/apd" "github.com/gofrs/uuid" - "github.com/jackc/pgx/v4" - "github.com/jackc/pgx/v4/pgconn" - "github.com/jackc/pgx/v4/pgconn/stmtcache" - "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v5" + "github.com/jackc/pgx/v5/pgconn" + "github.com/jackc/pgx/v5/pgconn/stmtcache" + "github.com/jackc/pgx/v5/pgtype" "github.com/shopspring/decimal" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/rows.go b/rows.go index 14bc50ba..cc6e26d5 100644 --- a/rows.go +++ b/rows.go @@ -7,8 +7,8 @@ import ( "time" "github.com/jackc/pgproto3/v2" - "github.com/jackc/pgx/v4/pgconn" - "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v5/pgconn" + "github.com/jackc/pgx/v5/pgtype" ) // Rows is the result set returned from *Conn.Query. Rows must be closed before diff --git a/stdlib/sql.go b/stdlib/sql.go index c9e36eef..39b7524a 100644 --- a/stdlib/sql.go +++ b/stdlib/sql.go @@ -63,9 +63,9 @@ import ( "sync" "time" - "github.com/jackc/pgx/v4" - "github.com/jackc/pgx/v4/pgconn" - "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v5" + "github.com/jackc/pgx/v5/pgconn" + "github.com/jackc/pgx/v5/pgtype" ) // Only intrinsic types should be binary format with database/sql. diff --git a/stdlib/sql_test.go b/stdlib/sql_test.go index 6b6440f7..e5eb47bf 100644 --- a/stdlib/sql_test.go +++ b/stdlib/sql_test.go @@ -13,9 +13,9 @@ import ( "time" "github.com/Masterminds/semver/v3" - "github.com/jackc/pgx/v4" - "github.com/jackc/pgx/v4/pgconn" - "github.com/jackc/pgx/v4/stdlib" + "github.com/jackc/pgx/v5" + "github.com/jackc/pgx/v5/pgconn" + "github.com/jackc/pgx/v5/stdlib" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/tx.go b/tx.go index 44311f1f..3ed0ca67 100644 --- a/tx.go +++ b/tx.go @@ -7,7 +7,7 @@ import ( "fmt" "strconv" - "github.com/jackc/pgx/v4/pgconn" + "github.com/jackc/pgx/v5/pgconn" ) // TxIsoLevel is the transaction isolation level (serializable, repeatable read, read committed or read uncommitted) diff --git a/tx_test.go b/tx_test.go index 85083830..23d76663 100644 --- a/tx_test.go +++ b/tx_test.go @@ -7,8 +7,8 @@ import ( "testing" "time" - "github.com/jackc/pgx/v4" - "github.com/jackc/pgx/v4/pgconn" + "github.com/jackc/pgx/v5" + "github.com/jackc/pgx/v5/pgconn" "github.com/stretchr/testify/require" ) diff --git a/values.go b/values.go index 2978e5a3..2f328b82 100644 --- a/values.go +++ b/values.go @@ -8,7 +8,7 @@ import ( "time" "github.com/jackc/pgio" - "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v5/pgtype" ) // PostgreSQL format codes diff --git a/values_test.go b/values_test.go index 47aacf89..27fbe977 100644 --- a/values_test.go +++ b/values_test.go @@ -10,7 +10,7 @@ import ( "testing" "time" - "github.com/jackc/pgx/v4" + "github.com/jackc/pgx/v5" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" )