Fix sql discretization when points not given as a python list.