Open gongxulei opened 8 hours ago
Describe the bug it's not work when pg server param "server_encoding " != utf8.
To Reproduce Steps to reproduce the behavior:
If possible, please provide runnable example such as:
Please run your example with the race detector enabled. For example, go run -race main.go or go test -race.
go run -race main.go
go test -race
Expected behavior A clear and concise description of what you expected to happen.
Actual behavior A clear and concise description of what actually happened.
Version
$ go version
$ psql --no-psqlrc --tuples-only -c 'select version()'
$ grep 'github.com/jackc/pgx/v[0-9]' go.mod
Additional context Add any other context about the problem here.
Describe the bug it's not work when pg server param "server_encoding " != utf8.
To Reproduce Steps to reproduce the behavior:
If possible, please provide runnable example such as:
Please run your example with the race detector enabled. For example,
go run -race main.go
orgo test -race
.Expected behavior A clear and concise description of what you expected to happen.
Actual behavior A clear and concise description of what actually happened.
Version
$ go version
-> [e.g. go version go1.18.3 darwin/amd64]$ psql --no-psqlrc --tuples-only -c 'select version()'
-> [e.g. PostgreSQL 14.4 on x86_64-apple-darwin21.5.0, compiled by Apple clang version 13.1.6 (clang-1316.0.21.2.5), 64-bit]$ grep 'github.com/jackc/pgx/v[0-9]' go.mod
-> [e.g. v4.16.1]Additional context Add any other context about the problem here.