-
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
`(*sql.Rows).Next()` can return `false` due to an error. The error must be handled by checking `(*sql.Rows).Err()`. The transaction must be ended by commit or rollback to close the db connection. Calling rollback after commit is noop. Don't call a query in the middle of cursor, as it may lead to a deadlock. The inner query may wait for a free connection, and the connection from the cursor can't be freed because it's stuck by the inner query waiting.
- Loading branch information
Showing
3 changed files
with
206 additions
and
323 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
Oops, something went wrong.