Mike Bayer  committed f6ede38

added PGInet type [ticket:444]

  • Participants
  • Parent commits d5b1638
  • Branches default

Comments (0)

Files changed (2)

 - postgres:
   - better reflection of sequences for alternate-schema Tables [ticket:442]
   - sequences on a non-pk column will properly fire off on INSERT
-  - added PGInterval type [ticket:460]
+  - added PGInterval type [ticket:460], PGInet type [ticket:444]
 - ext:
   - added distinct() method to SelectResults.  generally should only make a difference
   when using count().

File lib/sqlalchemy/databases/

         psycopg = None
+class PGInet(sqltypes.TypeEngine):
+    def get_col_spec(self):
+        return "INET"
 class PGNumeric(sqltypes.Numeric):
     def get_col_spec(self):
         if not self.precision:
     'numeric' : PGNumeric,
     'float' : PGFloat,
     'real' : PGFloat,
+    'inet': PGInet,
     'double precision' : PGFloat,
     'timestamp' : PG2DateTime,
     'timestamp with time zone' : PG2DateTime,