Re: [go-nuts] Probable bug in database/sql

2024-02-22 Thread Marco De Zio
OF is used only for the closing context error, but that code still smell bad to me due to that description. Il giorno giovedì 22 febbraio 2024 alle 02:56:37 UTC+1 Ian Lance Taylor ha scritto: > On Wed, Feb 21, 2024 at 4:27 PM Marco De Zio wrote: > > > > It seems to me that th

[go-nuts] Probable bug in database/sql

2024-02-21 Thread Marco De Zio
It seems to me that the second flag returned by Rows.nextLocked is wrongly interpreted by Rows.Next as it sets rs.hitEOF = true when ok is false; also Rows.nextLocked should set ok to true in some of the cases where right now returns false. Reference in code: https://github.com/golang/go/blob