Skip to content

Commit 95daed0

Browse files
Fix reflection of TIMESTAMPTZ columns (#276)
* Fix reflection of TIMESTAMPTZ columns * Update CHANGES.md --------- Co-authored-by: Gord Thompson <[email protected]>
1 parent 7748810 commit 95daed0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Unreleased
33

44
- Fix reflection of CHAR columns (#275)
5+
- Fix reflection of TIMESTAMPTZ columns (#276), thanks to @nvachhar
56

67

78
# Version 2.0.3

sqlalchemy_cockroachdb/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
"time": sqltypes.Time,
4646
"time without time zone": sqltypes.Time,
4747
"timestamp": sqltypes.TIMESTAMP,
48-
"timestamptz": sqltypes.TIMESTAMP,
49-
"timestamp with time zone": sqltypes.TIMESTAMP,
48+
"timestamptz": sqltypes.TIMESTAMP(timezone=True),
49+
"timestamp with time zone": sqltypes.TIMESTAMP(timezone=True),
5050
"timestamp without time zone": sqltypes.TIMESTAMP,
5151
"interval": sqltypes.Interval,
5252
"char": sqltypes.CHAR,

0 commit comments

Comments
 (0)