diff --git a/CHANGES.md b/CHANGES.md index db4594d..491de97 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -2,6 +2,7 @@ Unreleased - Fix reflection of CHAR columns (#275) +- Fix reflection of TIMESTAMPTZ columns (#276), thanks to @nvachhar # Version 2.0.3 diff --git a/sqlalchemy_cockroachdb/base.py b/sqlalchemy_cockroachdb/base.py index efba860..8cec0b4 100644 --- a/sqlalchemy_cockroachdb/base.py +++ b/sqlalchemy_cockroachdb/base.py @@ -45,8 +45,8 @@ "time": sqltypes.Time, "time without time zone": sqltypes.Time, "timestamp": sqltypes.TIMESTAMP, - "timestamptz": sqltypes.TIMESTAMP, - "timestamp with time zone": sqltypes.TIMESTAMP, + "timestamptz": sqltypes.TIMESTAMP(timezone=True), + "timestamp with time zone": sqltypes.TIMESTAMP(timezone=True), "timestamp without time zone": sqltypes.TIMESTAMP, "interval": sqltypes.Interval, "char": sqltypes.CHAR,