]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- 0.8 changelog
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 22 Jun 2013 15:40:10 +0000 (11:40 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 22 Jun 2013 15:40:10 +0000 (11:40 -0400)
- some whitespace

doc/build/changelog/changelog_08.rst
lib/sqlalchemy/dialects/postgresql/ranges.py

index 8ced943bb396cd25e02a156f1b72cefabd965127..5f305fe8f2ee3c6eccba8959f8ac9330817c2229 100644 (file)
@@ -6,6 +6,14 @@
 .. changelog::
     :version: 0.8.2
 
+    .. change::
+        :tags: feature, postgresql
+
+        Support for Postgresql 9.2 range types has been added.
+        Currently, no type translation is provided, so works
+        directly with strings or psycopg2 2.5 range extension types
+        at the moment.  Patch courtesy Chris Withers.
+
     .. change::
         :tags: bug, examples
 
index e7ab1d5b535d30a7b439b854175ccd0913e8fc7c..f708b286edd8506763e4d97ba46798a064c8cd39 100644 (file)
@@ -27,7 +27,7 @@ class RangeOperators(object):
         """Define comparison operations for range types."""
 
         def __ne__(self, other):
-            "Boolean expression. Returns true if two ranges are not equal" 
+            "Boolean expression. Returns true if two ranges are not equal"
             return self.expr.op('<>')(other)
 
         def contains(self, other, **kw):
@@ -54,7 +54,7 @@ class RangeOperators(object):
             left of the right hand operand.
             """
             return self.expr.op('<<')(other)
-            
+
         __lshift__ = strictly_left_of
 
         def strictly_right_of(self, other):
@@ -62,15 +62,15 @@ class RangeOperators(object):
             right of the right hand operand.
             """
             return self.expr.op('>>')(other)
-            
+
         __rshift__ = strictly_right_of
-        
+
         def not_extend_right_of(self, other):
             """Boolean expression. Returns true if the range in the column
             does not extend right of the range in the operand.
             """
             return self.expr.op('&<')(other)
-        
+
         def not_extend_left_of(self, other):
             """Boolean expression. Returns true if the range in the column
             does not extend left of the range in the operand.
@@ -92,42 +92,42 @@ class RangeOperators(object):
 
 class INT4RANGE(RangeOperators, sqltypes.TypeEngine):
     "Represent the Postgresql INT4RANGE type."
-    
+
     __visit_name__ = 'INT4RANGE'
 
 ischema_names['int4range'] = INT4RANGE
 
 class INT8RANGE(RangeOperators, sqltypes.TypeEngine):
     "Represent the Postgresql INT8RANGE type."
-    
+
     __visit_name__ = 'INT8RANGE'
 
 ischema_names['int8range'] = INT8RANGE
 
 class NUMRANGE(RangeOperators, sqltypes.TypeEngine):
     "Represent the Postgresql NUMRANGE type."
-    
+
     __visit_name__ = 'NUMRANGE'
 
 ischema_names['numrange'] = NUMRANGE
 
 class DATERANGE(RangeOperators, sqltypes.TypeEngine):
     "Represent the Postgresql DATERANGE type."
-    
+
     __visit_name__ = 'DATERANGE'
 
 ischema_names['daterange'] = DATERANGE
 
 class TSRANGE(RangeOperators, sqltypes.TypeEngine):
     "Represent the Postgresql TSRANGE type."
-    
+
     __visit_name__ = 'TSRANGE'
 
 ischema_names['tsrange'] = TSRANGE
 
 class TSTZRANGE(RangeOperators, sqltypes.TypeEngine):
     "Represent the Postgresql TSTZRANGE type."
-    
+
     __visit_name__ = 'TSTZRANGE'
 
 ischema_names['tstzrange'] = TSTZRANGE