Sha256: 6639b350d2bb8bab6c3f60ca575378b3f8d14b0ee3c04f0cf0af82859294c3c0

Contents?: true

Size: 436 Bytes

Versions: 32

Compression:

Stored size: 436 Bytes

Contents

module Arel
  module SqlCompiler
    class HsqldbCompiler < GenericCompiler
      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
    end
  end
end

Version data entries

32 entries across 32 versions & 7 rubygems

Version Path
activerecord-jdbc-adapter-1.2.9.1 lib/arel/engines/sql/compilers/hsqldb_compiler.rb
activerecord-jdbc-adapter-1.3.0.beta2 lib/arel/engines/sql/compilers/hsqldb_compiler.rb
cmoran92-activerecord-jdbc-adapter-1.2.1.2 lib/arel/engines/sql/compilers/hsqldb_compiler.rb
activerecord-jdbc-adapter-1.3.0.beta1 lib/arel/engines/sql/compilers/hsqldb_compiler.rb
activerecord-jdbc-adapter-1.2.9 lib/arel/engines/sql/compilers/hsqldb_compiler.rb
activerecord-jdbc-adapter-1.2.8 lib/arel/engines/sql/compilers/hsqldb_compiler.rb
activerecord-jdbc-adapter-1.2.5 lib/arel/engines/sql/compilers/hsqldb_compiler.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.5 lib/arel/engines/sql/compilers/hsqldb_compiler.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.4 lib/arel/engines/sql/compilers/hsqldb_compiler.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.3 lib/arel/engines/sql/compilers/hsqldb_compiler.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.2 lib/arel/engines/sql/compilers/hsqldb_compiler.rb
activerecord-jdbc-adapter-1.2.2.1 lib/arel/engines/sql/compilers/hsqldb_compiler.rb
activerecord-jdbc-adapter-onsite-1.2.2 lib/arel/engines/sql/compilers/hsqldb_compiler.rb
cmoran92-activerecord-jdbc-adapter-1.2.1.1 lib/arel/engines/sql/compilers/hsqldb_compiler.rb
intentmedia-activerecord-jdbc-adapter-1.1.1.1 lib/arel/engines/sql/compilers/hsqldb_compiler.rb
activerecord-jdbc-adapter-1.2.2 lib/arel/engines/sql/compilers/hsqldb_compiler.rb
cmoran92-activerecord-jdbc-adapter-1.2.1 lib/arel/engines/sql/compilers/hsqldb_compiler.rb
activerecord-jdbc-adapter-1.2.1 lib/arel/engines/sql/compilers/hsqldb_compiler.rb
c3-activerecord-jdbc-adapter-1.1.3.1 lib/arel/engines/sql/compilers/hsqldb_compiler.rb
activerecord-jdbc-adapter-1.2.0 lib/arel/engines/sql/compilers/hsqldb_compiler.rb