On Friday, 7 November 2025 at 14:01:50 UTC+13 robert engels wrote: I reviewed the stdlib a bit more, and the driver connection is the “db connection” (upon which statements are run - these are handed out) and these are tracked:
https://github.com/golang/go/blob/ad3ccd92e4c2ddfc1499a5e038eb0aa0012c0dda/src/database/sql/sql.go#L1447 https://github.com/golang/go/blob/ad3ccd92e4c2ddfc1499a5e038eb0aa0012c0dda/src/database/sql/sql.go#L750 Yes, that's true, the DB does track the connections that have been handed out. So it could, if it wanted, do something with them during DB.Close. But it doesn't, unless I'm missing something. Is it your contention that there is an issue with the particular driver I'm using in my experiments? I'm a little confused about how the dependency tracking that you linked to is connected to your earlier statement "I think it is driver issue". Can you connect the dots for me please? Thanks, Toby. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/9653482e-8bea-4135-b092-cb449acbeda1n%40googlegroups.com.
