diff options
author | Michael Trier <mtrier@gmail.com> | 2008-07-03 04:21:13 +0000 |
---|---|---|
committer | Michael Trier <mtrier@gmail.com> | 2008-07-03 04:21:13 +0000 |
commit | d3581d1c09df4e9da2c16ec75bde73e69f44c487 (patch) | |
tree | d0fb0c451cd1033d647b5759ee1c263c11571519 /lib/sqlalchemy/databases/postgres.py | |
parent | 4af496892685b95c5bb761e1c585c3f122a658cb (diff) | |
download | sqlalchemy-d3581d1c09df4e9da2c16ec75bde73e69f44c487.tar.gz |
Added PGCidr type to postgres. Closes #1092
(cherry picked from commit 2394a6bb6c5f77afd448640ce03cf6fda0335a23)
Diffstat (limited to 'lib/sqlalchemy/databases/postgres.py')
-rw-r--r-- | lib/sqlalchemy/databases/postgres.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/sqlalchemy/databases/postgres.py b/lib/sqlalchemy/databases/postgres.py index c30ca8b28..944d8c3aa 100644 --- a/lib/sqlalchemy/databases/postgres.py +++ b/lib/sqlalchemy/databases/postgres.py @@ -32,6 +32,10 @@ class PGInet(sqltypes.TypeEngine): def get_col_spec(self): return "INET" +class PGCidr(sqltypes.TypeEngine): + def get_col_spec(self): + return "CIDR" + class PGMacAddr(sqltypes.TypeEngine): def get_col_spec(self): return "MACADDR" @@ -206,6 +210,7 @@ ischema_names = { 'float' : PGFloat, 'real' : PGFloat, 'inet': PGInet, + 'cidr': PGCidr, 'macaddr': PGMacAddr, 'double precision' : PGFloat, 'timestamp' : PGDateTime, |