code: func ConvertIntToUint(sc *stmtctx.StatementContext, val int64, upperBound uint64, tp byte) (uint64, error) {
  	if sc.ShouldClipToZero() && val < 0 {
  		return 0, overflow(val, tp)
  	}
  
  	if uint64(val) > upperBound {
  		return upperBound, overflow(val, tp)
  	}
  
  	return uint64(val), nil
  }
docs: // ConvertIntToUint converts an int value to an uint value.