Join association built from string join should not retry

This commit is contained in:
Adrianna Chang 2024-04-23 09:06:38 -04:00
parent ab49c0a0b9
commit 33a50ce65d
No known key found for this signature in database
GPG Key ID: 6816AFC60CB96DE5
1 changed files with 1 additions and 1 deletions

View File

@ -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)