Django

Code

Changeset 7483

Show
Ignore:
Timestamp:
04/27/08 12:41:42 (4 months ago)
Author:
jbronn
Message:

gis: Forgot to include Oracle relate patch with the other qsrf changes.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/gis/django/contrib/gis/db/backend/oracle/query.py

    r7104 r7483  
    5757    mask_regex = re.compile(r'^(%s)(\+(%s))*$' % (masks, masks), re.I) 
    5858    def __init__(self, mask): 
     59        func = 'SDO_RELATE' 
    5960        if not self.mask_regex.match(mask): 
    60             raise ValueError('Invalid %s mask: "%s"' % (self.lookup, mask)) 
    61         super(SDORelate, self).__init__('SDO_RELATE', end_subst=", 'mask=%s') = 'TRUE'" % mask) 
     61            raise ValueError('Invalid %s mask: "%s"' % (func, mask)) 
     62        super(SDORelate, self).__init__(func, end_subst=", 'mask=%s') = 'TRUE'" % mask) 
    6263 
    6364#### Lookup type mapping dictionaries of Oracle spatial operations ####