Skip to content

Document prepared statement close error limitations - #354

Open
vzer200 wants to merge 1 commit into
DATA-DOG:masterfrom
vzer200:docs/prepared-statement-close-errors
Open

vzer200 wants to merge 1 commit into
DATA-DOG:masterfrom
vzer200:docs/prepared-statement-close-errors

Conversation

@vzer200

@vzer200 vzer200 commented Sep 8, 2026

Copy link
Copy Markdown

Documents the limitation reported in #185: database/sql discards the driver's statement close error for statements prepared through DB.Prepare or DB.PrepareContext. The comment also identifies directly prepared Tx and Conn statements as paths where the error can be observed. Mock behavior is unchanged.

Validated nine real database/sql preparation/close paths on Go 1.23.12, 1.26.8, and 1.27.1, including Tx.Stmt wrappers and repeated Close calls. The required root go test -race and go vet ./... pass. An additional all-package run encounters an orders-example timeout reproduced on the unchanged base.

Implemented and independently reviewed by automated agents before submission.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant