> ## Documentation Index
> Fetch the complete documentation index at: https://loadwise.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# go-sql-rows-unchecked-err

> A Go database/sql Rows loop returns success without checking an iteration error.

## What it flags

A function returns success immediately after a Go `database/sql` loop reaches the end. `Rows.Next()` can return false after an iteration error, leaving partial results.

## How to review or fix

Check or return `rows.Err()` after the loop. Closing the iterator does not check the iteration result.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.