def result_processor(self, dialect, coltype):
    if self._reg:
        return processors.str_to_datetime_processor_factory(self._reg, datetime.date)
    else:
        return processors.str_to_date
def result_processor(self, dialect, coltype):
    if self._reg:
        return processors.str_to_datetime_processor_factory(self._reg, datetime.date)
    else:
        return processors.str_to_date