Closed letFunny closed 8 months ago
Because the Query struct did not contain references to either Statement or DB, if either of those goes out of scope the underlying sql.Stmt was closed. If the user then proceeds to use the Query struct, the result will be an error.
Because the Query struct did not contain references to either Statement or DB, if either of those goes out of scope the underlying sql.Stmt was closed. If the user then proceeds to use the Query struct, the result will be an error.