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
on this mysql query, does not return error, and return empty rows, if query is locked for update
rows, err := sqlx.Query("select id from payment where status in (1, 2) for update nowait;")
should return error like
SQL Error [3572] [HY000]: Statement aborted because lock(s) could not be acquired immediately and NOWAIT is set.
but error is return on QueryRow
row := sqlx.QueryRow("select id from payment where status in (1, 2) for update nowait;") var id int err = row.Scan(&id) if err != nil { t.Error(err) }
how make get err on sqlx.Query ?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
on this mysql query, does not return error, and return empty rows, if query is locked for update
should return error like
but error is return on QueryRow
how make get err on sqlx.Query ?
The text was updated successfully, but these errors were encountered: