<s> from django . db . models . sql import compiler <EOL> class SQLCompiler ( compiler . SQLCompiler ) : <EOL> def as_sql ( self , with_limits = True , with_col_aliases = False , subquery = False ) : <EOL> """<STR_LIT>""" <EOL> do_offset = with_limits and ( self . query . high_mark is not None or self . query . low_mark ) <EOL> if not do_offset : <EOL> sql , params = super ( SQLCompiler , self ) . as_sql ( <EOL> with_limits = False , <EOL> with_col_aliases = with_col_aliases , <EOL> subquery = subquery , <EOL> ) <EOL> else : <EOL> sql , params = super ( SQLCompiler , self ) . as_sql ( <EOL> with_limits = False , <EOL> with_col_aliases = True , <EOL> subquery = subquery , <EOL> ) <EOL> high_where = '<STR_LIT>' <EOL> if self . query . high_mark is not None : <EOL> high_where = '<STR_LIT>' % ( self . query . high_mark , ) <EOL> sql = ( <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' % ( sql , high_where , self . query . low_mark ) <EOL> ) <EOL> return sql , params <EOL> class SQLInsertCompiler ( compiler . SQLInsertCompiler , SQLCompiler ) : <EOL> pass <EOL> class SQLDeleteCompiler ( compiler . SQLDeleteCompiler , SQLCompiler ) : <EOL> pass <EOL> class SQLUpdateCompiler ( compiler . SQLUpdateCompiler , SQLCompiler ) : <EOL> pass <EOL> class SQLAggregateCompiler ( compiler . SQLAggregateCompiler , SQLCompiler ) : <EOL> pass </s>
