Sha256: da125eb3a2ba90f577778344d7aa215f1e1c290db202936f4f1d59b32fb93708

Contents?: true

Size: 578 Bytes

Versions: 12

Compression:

Stored size: 578 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)
    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

12 entries across 12 versions & 1 rubygems

Version Path
activerecord-jdbc-adapter-1.3.5 lib/arjdbc/derby/active_record_patch.rb
activerecord-jdbc-adapter-1.3.4 lib/arjdbc/derby/active_record_patch.rb
activerecord-jdbc-adapter-1.3.3 lib/arjdbc/derby/active_record_patch.rb
activerecord-jdbc-adapter-1.3.2 lib/arjdbc/derby/active_record_patch.rb
activerecord-jdbc-adapter-1.3.1 lib/arjdbc/derby/active_record_patch.rb
activerecord-jdbc-adapter-1.3.0 lib/arjdbc/derby/active_record_patch.rb
activerecord-jdbc-adapter-1.3.0.rc1 lib/arjdbc/derby/active_record_patch.rb
activerecord-jdbc-adapter-1.2.9.1 lib/arjdbc/derby/active_record_patch.rb
activerecord-jdbc-adapter-1.3.0.beta2 lib/arjdbc/derby/active_record_patch.rb
activerecord-jdbc-adapter-1.3.0.beta1 lib/arjdbc/derby/active_record_patch.rb
activerecord-jdbc-adapter-1.2.9 lib/arjdbc/derby/active_record_patch.rb
activerecord-jdbc-adapter-1.2.8 lib/arjdbc/derby/active_record_patch.rb