mirror of https://github.com/rails/rails
Join association built from string join should not retry
This commit is contained in:
parent
ab49c0a0b9
commit
33a50ce65d
|
@ -93,7 +93,7 @@ module ActiveRecord
|
|||
def append_constraints(connection, join, constraints)
|
||||
if join.is_a?(Arel::Nodes::StringJoin)
|
||||
join_string = Arel::Nodes::And.new(constraints.unshift join.left)
|
||||
join.left = Arel.sql(connection.visitor.compile(join_string), retryable: true)
|
||||
join.left = Arel.sql(connection.visitor.compile(join_string))
|
||||
else
|
||||
right = join.right
|
||||
right.expr = Arel::Nodes::And.new(constraints.unshift right.expr)
|
||||
|
|
Loading…
Reference in New Issue