We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41e294b commit 9d93f40Copy full SHA for 9d93f40
lib/arjdbc/derby/active_record_patch.rb
@@ -1,9 +1,10 @@
1
-# Needed because Rails is broken wrt to quoting of some values.
2
-# Most databases are nice about it, but not Derby.
+# Needed because Rails is broken wrt to quoting of some values.
+# Most databases are nice about it, but not Derby.
3
# The real issue is that you can't compare a CHAR value to a NUMBER column.
4
ActiveRecord::Associations::ClassMethods.module_eval do
5
private
6
def select_limited_ids_list(options, join_dependency)
7
+ return super unless connection.is_a?(ArJdbc::Derby)
8
connection.select_all(
9
construct_finder_sql_for_association_limiting(options, join_dependency),
10
"#{name} Load IDs For Limited Eager Loading"
0 commit comments