Parent

Methods

Files

Class/Module Index [+]

Quicksearch

Arel::SqlCompiler::HsqldbCompiler

Public Instance Methods

select_sql() click to toggle source
# File lib/arel/engines/sql/compilers/hsqldb_compiler.rb, line 4
def select_sql
  # HSQLDB needs to add LIMIT in right after SELECT
  query = super
  offset = relation.skipped
  limit = relation.taken
  @engine.connection.add_limit_offset!(query, :limit => limit,
                                       :offset => offset) if offset || limit
  query
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.