Returning cursor conflicts with the executor