...

Text file src/github.com/jackc/pgx/v5/.github/ISSUE_TEMPLATE/bug_report.md

Documentation: github.com/jackc/pgx/v5/.github/ISSUE_TEMPLATE

     1---
     2name: Bug report
     3about: Create a report to help us improve
     4title: ''
     5labels: bug
     6assignees: ''
     7
     8---
     9
    10**Describe the bug**
    11A clear and concise description of what the bug is.
    12
    13**To Reproduce**
    14Steps to reproduce the behavior:
    15
    16If possible, please provide runnable example such as:
    17
    18```go
    19package main
    20
    21import (
    22	"context"
    23	"log"
    24	"os"
    25
    26	"github.com/jackc/pgx/v5"
    27)
    28
    29func main() {
    30	conn, err := pgx.Connect(context.Background(), os.Getenv("DATABASE_URL"))
    31	if err != nil {
    32		log.Fatal(err)
    33	}
    34	defer conn.Close(context.Background())
    35
    36	// Your code here...
    37}
    38```
    39
    40Please run your example with the race detector enabled. For example, `go run -race main.go` or `go test -race`.
    41
    42**Expected behavior**
    43A clear and concise description of what you expected to happen.
    44
    45**Actual behavior**
    46A clear and concise description of what actually happened.
    47
    48**Version**
    49 - Go: `$ go version` -> [e.g. go version go1.18.3 darwin/amd64]
    50 - PostgreSQL: `$ 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]
    51 - pgx: `$ grep 'github.com/jackc/pgx/v[0-9]' go.mod` -> [e.g. v4.16.1]
    52
    53**Additional context**
    54Add any other context about the problem here.

View as plain text