]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- finally added PGMacAddr type to postgres
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 10 Jan 2008 15:24:14 +0000 (15:24 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 10 Jan 2008 15:24:14 +0000 (15:24 +0000)
[ticket:580]

CHANGES
lib/sqlalchemy/databases/postgres.py

diff --git a/CHANGES b/CHANGES
index 37f8f968fdc4652ed0bba7ca172f8e6ad9d2b19c..6f8ba13b20b8c170d812cc1fea22399f6e54716f 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -5,7 +5,10 @@ CHANGES
 0.4.2p4
 ------
 
-
+- dialects
+    - finally added PGMacAddr type to postgres 
+      [ticket:580]
+    
 0.4.2p3
 ------
 - general
index 3c0314e64a46cf5c949518f32d2f1f305cc675b1..6d29430b98d98eacbb745de358f2ed5c440b25be 100644 (file)
@@ -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,