On the numerical solution of the one-dimensional convection-diffusion equation