Michael Bayer ha scritto:
> ive never seen this type used before but it appears to be part of the
> SQL standard, so if someone submits a patch it will go in.
>
psycopg2 support interval out of the box, so adding support for it
should be very easy (I'm not able to submit a patch since I'm not an
expert of SQLAlchemy).
For now I'm using this:
class TimeDelta(types.TypeEngine):
def __init__(self, precision=6):
self.precision = precision
def get_col_spec(self):
return "INTERVAL(%(precision)s)" % {'precision': self.precision}
INTERVAL = TimeDelta
The problem is to add support for pysqlite2 and psycopg1
Regards Manlio Perillo
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---