Closed shogo82148 closed 10 months ago
The changes involve updating a test function in driver_test.go
to enhance its robustness. The test now includes a preliminary check to ensure that rows are present before proceeding with scanning operations. Additionally, the management of the rows.Close()
call has been optimized within the function's logic, ensuring that resources are handled correctly and potential issues with unclosed rows are mitigated.
File Path | Change Summary |
---|---|
driver_test.go |
Added a check for row existence and reorganized the rows.Close() call within the TestRawBytesAreNotModified function. |
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on X ?
Description
cancel()
is intended to cancel the execution of rows.Next, but very rarely it cancels the execution ofrows.Scan
, causingrows.Scan
to return an error, resulting in a test failure.This pull request addresses this issue.
Checklist
Summary by CodeRabbit