-
-
Notifications
You must be signed in to change notification settings - Fork 991
Open
Description
Is your feature request related to a problem? Please describe.
Of course, we shouldn't use a single session(aka. connection) in multi threads(goroutines) without lock.
But there's still a chance that someone might shoot themselves in the foot. In that cases, we might got a simple and unclear message: "bad connection". It's not good, right?
Describe the solution you'd like
Maybe we can add a bugcheck, if someone do the unclever things, let them know.
Additional context
The pesudo-code
_:=conn.BeginTx() // begin a transaction
for i:=0;i <10; i++ {
go func(){
for {
conn.Query(...) // boom!
}
}()
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels