- postgres:
- better reflection of sequences for alternate-schema Tables [ticket:442]
- sequences on a non-pk column will properly fire off on INSERT
+ - added PGInterval type [ticket:460]
- ext:
- added distinct() method to SelectResults. generally should only make a difference
when using count().
return value
def get_col_spec(self):
return "TIME " + (self.timezone and "WITH" or "WITHOUT") + " TIME ZONE"
-
+class PGInterval(sqltypes.TypeEngine):
+ def get_col_spec(self):
+ return "INTERVAL"
+
class PGText(sqltypes.TEXT):
def get_col_spec(self):
return "TEXT"
'time': PG2Time,
'bytea' : PGBinary,
'boolean' : PGBoolean,
+ 'interval':PGInterval,
}
pg1_ischema_names = pg2_ischema_names.copy()
pg1_ischema_names.update({