Sha256: 9db90bdee1c7456a547db62c009af70ba14155f33e8a42dfabf9061de9388640

Contents?: true

Size: 632 Bytes

Versions: 92

Compression:

Stored size: 632 Bytes

Contents

# Needed because Rails is broken wrt to quoting of some values.
# Most databases are nice about it, but not Derby.
# The real issue is that you can't compare a CHAR value to a NUMBER column.
ActiveRecord::Associations::ClassMethods.module_eval do
  private
  def select_limited_ids_list(options, join_dependency)
    return super unless connection.is_a?(ArJdbc::Derby)
    connection.select_all(
      construct_finder_sql_for_association_limiting(options, join_dependency),
      "#{name} Load IDs For Limited Eager Loading"
    ).collect { |row| connection.quote(row[primary_key], columns_hash[primary_key]) }.join(", ")
  end
end

Version data entries

92 entries across 92 versions & 4 rubygems

Version Path
activerecord-jdbc-alt-adapter-61.3.0-java lib/arjdbc/derby/active_record_patch.rb
activerecord-jdbc-adapter-61.3-java lib/arjdbc/derby/active_record_patch.rb
activerecord-jdbc-alt-adapter-60.3.0-java lib/arjdbc/derby/active_record_patch.rb
activerecord-jdbc-alt-adapter-61.2.0-java lib/arjdbc/derby/active_record_patch.rb
activerecord-jdbc-adapter-70.0-java lib/arjdbc/derby/active_record_patch.rb
activerecord-jdbc-adapter-70.0.pre-java lib/arjdbc/derby/active_record_patch.rb
activerecord-jdbc-adapter-61.2-java lib/arjdbc/derby/active_record_patch.rb
activerecord-jdbc-alt-adapter-60.2.0-java lib/arjdbc/derby/active_record_patch.rb
activerecord-jdbc-alt-adapter-61.1.0-java lib/arjdbc/derby/active_record_patch.rb
activerecord-jdbc-adapter-61.1-java lib/arjdbc/derby/active_record_patch.rb
activerecord-jdbc-adapter-60.4-java lib/arjdbc/derby/active_record_patch.rb
activerecord-jdbc-adapter-52.8-java lib/arjdbc/derby/active_record_patch.rb
activerecord-jdbc-alt-adapter-61.0.0-java lib/arjdbc/derby/active_record_patch.rb
activerecord-jdbc-alt-adapter-60.1.0-java lib/arjdbc/derby/active_record_patch.rb
activerecord-jdbc-alt-adapter-52.6.0-java lib/arjdbc/derby/active_record_patch.rb
activerecord-jdbc-alt-adapter-51.7.0-java lib/arjdbc/derby/active_record_patch.rb
activerecord-jdbc-alt-adapter-50.7.0-java lib/arjdbc/derby/active_record_patch.rb
activerecord-jdbc-adapter-61.0-java lib/arjdbc/derby/active_record_patch.rb
activerecord-jdbc-adapter-60.3-java lib/arjdbc/derby/active_record_patch.rb
activerecord-jdbc-adapter-52.7-java lib/arjdbc/derby/active_record_patch.rb