Added PGCidr type to postgres. Closes #1092

(cherry picked from commit 2394a6bb6c5f77afd448640ce03cf6fda0335a23)
This commit is contained in:
Michael Trier
2008-07-03 04:21:13 +00:00
parent 4af4968926
commit d3581d1c09
2 changed files with 7 additions and 0 deletions
+2
View File
@@ -164,6 +164,8 @@ CHANGES
- Repaired server_side_cursors to properly detect
text() clauses.
- Added PGCidr type. [ticket:1092]
- mysql
- Added 'CALL' to the list of SQL keywords which return
result rows.
+5
View File
@@ -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,