code: func (d *Accessor) UpdateOCSP(serial, aki, body string, expiry time.Time) error {
  	err := d.checkDB()
  	if err != nil {
  		return err
  	}
  
  	result, err := d.db.NamedExec(updateOCSPSQL, &certdb.OCSPRecord{
  		AKI:    aki,
  		Body:   body,
  		Expiry: expiry.UTC(),
  		Serial: serial,
  	})
  	if err != nil {
  		return wrapSQLError(err)
  	}
  
  	numRowsAffected, err := result.RowsAffected()
  
  	if numRowsAffected == 0 {
  		return cferr.Wrap(cferr.CertStoreError, cferr.RecordNotFound, fmt.Errorf("failed to update the OCSP record"))
  	}
  
  	if numRowsAffected != 1 {
  		return wrapSQLError(fmt.Errorf("%d rows are affected, should be 1 row", numRowsAffected))
  	}
  
  	return err
  }
docs: // UpdateOCSP updates a ocsp response record with a given serial number.