Make retrieve-sql allow to take :as option.