We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
While following a slight deviation to the example on https://pkg.go.dev/database/sql, I encountered a deadlock. For example,
example.go
package myproject import ( "database/sql" _ "github.com/proullon/ramsql/driver" ) db, _ := sql.Open("ramsql", ":inmemory:") defer db.Close() var name string // sql: expected 0 arguments, got 1 db.QueryRowContext(context.TODO(), "select p.name from people as p where p.id = :id;", sql.Named("id", "1234")).Scan(&name) // deadlock 🤔 db.ExecContext(context.TODO(), "INSERT INTO people (id,name) VALUES (?,?)", "1234", "Ramone")
go.mod
module github.com/myorg/myproject go 1.17 require github.com/proullon/ramsql v0.0.0-20211120092837-c8d0a408b939
The text was updated successfully, but these errors were encountered:
Thanks for the report, I'll take a look
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
While following a slight deviation to the example on https://pkg.go.dev/database/sql, I encountered a deadlock. For example,
example.go
go.mod
The text was updated successfully, but these errors were encountered: