DateRange with mx.Date

From: Tilman Koschnick <til(at)subnetz(dot)org>
To: psycopg(at)postgresql(dot)org
Subject: DateRange with mx.Date
Date: 2015-06-25 11:08:10
Message-ID: 1435230490.6368.7.camel@mother.subnetz.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: psycopg

Hi,

is there a way to adapt extras.DateRange to use extensions.MXDATE as a
typecaster and accept/return mx.Date values directly?

From the documentation, I couldn't make out how to do this using
register_range(). I do not want to create a new range type within the
database, just change the python type returned.

Kind regards, Til

Responses

Browse psycopg by date

  From Date Subject
Next Message Daniele Varrazzo 2015-06-25 14:02:44 Re: DateRange with mx.Date
Previous Message Daniele Varrazzo 2015-06-15 17:30:16 Psycopg 2.6.1 released