<s> from django . db . backends . util import typecast_timestamp <EOL> from django . db . models . sql import compiler <EOL> from django . db . models . sql . constants import MULTI <EOL> from django . contrib . gis . db . models . sql . compiler import GeoSQLCompiler as BaseGeoSQLCompiler <EOL> SQLCompiler = compiler . SQLCompiler <EOL> class GeoSQLCompiler ( BaseGeoSQLCompiler , SQLCompiler ) : <EOL> pass <EOL> class SQLInsertCompiler ( compiler . SQLInsertCompiler , GeoSQLCompiler ) : <EOL> pass <EOL> class SQLDeleteCompiler ( compiler . SQLDeleteCompiler , GeoSQLCompiler ) : <EOL> pass <EOL> class SQLUpdateCompiler ( compiler . SQLUpdateCompiler , GeoSQLCompiler ) : <EOL> pass <EOL> class SQLAggregateCompiler ( compiler . SQLAggregateCompiler , GeoSQLCompiler ) : <EOL> pass <EOL> class SQLDateCompiler ( compiler . SQLDateCompiler , GeoSQLCompiler ) : <EOL> """<STR_LIT>""" <EOL> def results_iter ( self ) : <EOL> offset = len ( self . query . extra_select ) <EOL> for rows in self . execute_sql ( MULTI ) : <EOL> for row in rows : <EOL> date = typecast_timestamp ( str ( row [ offset ] ) ) <EOL> yield date </s>
