Django

Code

Show
Ignore:
Timestamp:
07/08/08 13:46:09 (2 months ago)
Author:
jbronn
Message:

gis: Fixed bug in GeoQuery.get_default_columns; forgot to make Oracle spatial lookup terms structure a dictionary.

Files:

Legend:

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

    r7836 r7870  
    105105MISC_TERMS = ['isnull'] 
    106106 
    107 # Assacceptable lookup types for Oracle spatial. 
     107# Acceptable lookup types for Oracle spatial. 
    108108ORACLE_SPATIAL_TERMS  = ORACLE_GEOMETRY_FUNCTIONS.keys() 
    109109ORACLE_SPATIAL_TERMS += MISC_TERMS 
    110 ORACLE_SPATIAL_TERMS = tuple(ORACLE_SPATIAL_TERMS) # Making immutable 
     110ORACLE_SPATIAL_TERMS = dict((term, None) for term in ORACLE_SPATIAL_TERMS) # Making dictionary for fast lookups 
    111111 
    112112#### The `get_geo_where_clause` function for Oracle ####