Open MarinShalamanov opened 7 years ago
stmt, err := db.Prepare("update submissions set verdict=?, reason=?, correct=?, total=?, points=? where id=?") if err != nil { log.Print(err) return err } defer stmt.Close()
if there is an error (and the stmt is created it won't be closed). is that possible?
2016/10/25 20:58:54 Error 1461: Can't create more than max_prepared_stmt_count statements (current value: 16382)