diff options
author | asimfarooq5 <asimfarooq5@gmail.com> | 2022-12-14 15:32:47 -0500 |
---|---|---|
committer | Federico Caselli <cfederico87@gmail.com> | 2022-12-19 20:27:30 +0100 |
commit | 33f15740a0b72bae64fc2c2f6d0f9724cfe9164a (patch) | |
tree | 89a9bdb0ec3091cdc80bfdf0b2c3dc9039773819 /lib/sqlalchemy/dialects/postgresql/base.py | |
parent | a8d76cff39dbaf6354d42d35cd68332df469d124 (diff) | |
download | sqlalchemy-33f15740a0b72bae64fc2c2f6d0f9724cfe9164a.tar.gz |
Add MACCADDR8 for PGCompiler
Add MACCADDR8 for PGCompiler
Closes: #8393
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/8393
Pull-request-sha: 837a68eba3e31e0acbb7c47ee87bca4e9def7648
Change-Id: I87e4999eb8d82662ff8ab409c98dc57edd7fd271
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/base.py')
-rw-r--r-- | lib/sqlalchemy/dialects/postgresql/base.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/base.py b/lib/sqlalchemy/dialects/postgresql/base.py index f9108094f..5893a1a91 100644 --- a/lib/sqlalchemy/dialects/postgresql/base.py +++ b/lib/sqlalchemy/dialects/postgresql/base.py @@ -1419,6 +1419,7 @@ from .types import CIDR as CIDR from .types import INET as INET from .types import INTERVAL as INTERVAL from .types import MACADDR as MACADDR +from .types import MACADDR8 as MACADDR8 from .types import MONEY as MONEY from .types import OID as OID from .types import PGBit as PGBit # noqa: F401 @@ -1426,6 +1427,7 @@ from .types import PGCidr as PGCidr # noqa: F401 from .types import PGInet as PGInet # noqa: F401 from .types import PGInterval as PGInterval # noqa: F401 from .types import PGMacAddr as PGMacAddr # noqa: F401 +from .types import PGMacAddr8 as PGMacAddr8 # noqa: F401 from .types import PGUuid as PGUuid from .types import REGCLASS as REGCLASS from .types import TIME as TIME @@ -1583,6 +1585,7 @@ colspecs = { UUID: PGUuid, } + ischema_names = { "_array": _array.ARRAY, "hstore": _hstore.HSTORE, @@ -1617,6 +1620,7 @@ ischema_names = { "bit": BIT, "bit varying": BIT, "macaddr": MACADDR, + "macaddr8": MACADDR8, "money": MONEY, "oid": OID, "regclass": REGCLASS, @@ -2390,6 +2394,9 @@ class PGTypeCompiler(compiler.GenericTypeCompiler): def visit_MACADDR(self, type_, **kw): return "MACADDR" + def visit_MACADDR8(self, type_, **kw): + return "MACADDR8" + def visit_MONEY(self, type_, **kw): return "MONEY" |