summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/databases/postgres.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/databases/postgres.py')
-rw-r--r--lib/sqlalchemy/databases/postgres.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/sqlalchemy/databases/postgres.py b/lib/sqlalchemy/databases/postgres.py
index 3c0314e64..6d29430b9 100644
--- a/lib/sqlalchemy/databases/postgres.py
+++ b/lib/sqlalchemy/databases/postgres.py
@@ -31,6 +31,10 @@ from sqlalchemy import types as sqltypes
class PGInet(sqltypes.TypeEngine):
def get_col_spec(self):
return "INET"
+
+class PGMacAddr(sqltypes.TypeEngine):
+ def get_col_spec(self):
+ return "MACADDR"
class PGNumeric(sqltypes.Numeric):
def get_col_spec(self):
@@ -181,6 +185,7 @@ ischema_names = {
'float' : PGFloat,
'real' : PGFloat,
'inet': PGInet,
+ 'macaddr': PGMacAddr,
'double precision' : PGFloat,
'timestamp' : PGDateTime,
'timestamp with time zone' : PGDateTime,