]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Remove TIMESTAMPTZ
authorasimfarooq5 <asimfarooq5@gmail.com>
Tue, 16 Aug 2022 13:31:03 +0000 (18:31 +0500)
committerasimfarooq5 <asimfarooq5@gmail.com>
Tue, 16 Aug 2022 13:31:03 +0000 (18:31 +0500)
lib/sqlalchemy/dialects/postgresql/base.py
test/dialect/postgresql/test_types.py

index d867402273ee6aa5d9023fa5c2a347498987e2db..90639a481792d925bdfb97b61b9e4c3399fdc248 100644 (file)
@@ -1522,10 +1522,6 @@ class MACADDR8(MACADDR):
     __visit_name__ = "MACADDR8"
 
 
-class TIMESTAMPTZ(TIMESTAMP):
-    __visit_name__ = "TIMESTAMPTZ"
-
-
 ischema_names = {
     "_array": _array.ARRAY,
     "hstore": _hstore.HSTORE,
@@ -1566,7 +1562,6 @@ ischema_names = {
     "regclass": REGCLASS,
     "double precision": DOUBLE_PRECISION,
     "timestamp": TIMESTAMP,
-    "timestampz": TIMESTAMPZ,
     "timestamp with time zone": TIMESTAMP,
     "timestamp without time zone": TIMESTAMP,
     "time with time zone": TIME,
@@ -2468,9 +2463,6 @@ class PGTypeCompiler(compiler.GenericTypeCompiler):
             (type_.timezone and "WITH" or "WITHOUT") + " TIME ZONE",
         )
 
-    def visit_TIMESTAMPTZ(self, type_, **kw):
-        return "TIMESTAMPTZ"
-
     def visit_TIME(self, type_, **kw):
         return "TIME%s %s" % (
             "(%d)" % type_.precision
index b4c19238d324c0a8a27154d381f6111a48e11dd7..67e05e3cb7672fafdfd4dd1eeb903fc8ad3385d7 100644 (file)
@@ -2953,6 +2953,7 @@ class SpecialTypesTest(fixtures.TablesTest, ComparesTables):
             Column("bitstring", postgresql.BIT(4)),
             Column("addr", postgresql.INET),
             Column("addr2", postgresql.MACADDR),
+            Column("addr4", postgresql.MACADDR8),
             Column("price", postgresql.MONEY),
             Column("addr3", postgresql.CIDR),
             Column("doubleprec", postgresql.DOUBLE_PRECISION),