-
Notifications
You must be signed in to change notification settings - Fork 837
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unpin extendedQueryBuilder memory immediately after use
refs #1110
- Loading branch information
Showing
2 changed files
with
18 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a457da8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
I see one panic error when importing your packages, could you please help me to check? Thanks.
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x180 pc=0x120fc22]
goroutine 325 [running]:
sync.(*Mutex).Lock(...)
#11/usr/local/go/src/sync/mutex.go:74
github.com/jackc/pgx.(*Conn).IsAlive(0x0, 0x0)
#11/vendor/github.com/jackc/pgx/conn.go:1679 +0x32
a457da8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like you're using
v3
. I suggest usingv4
. It was released over 2 years ago. Also, I have no idea how that problem could relate to this commit.a457da8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a457da8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it's available. Versioned package import paths don't exactly correspond to Github URLs. https://github.com/jackc/pgx is the Github page and https://pkg.go.dev/github.com/jackc/pgx/v4 is the documentation.
a457da8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a457da8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe you mean https://pkg.go.dev/github.com/jackc/pgx/v4#Connect