You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previously, symbol references to columns on a join table would make
queries non-retryable due to two reasons. First, `#arel_column` wraps
symbols in a non-retryable `SqlLiteral` if they aren't attributes on the
primary model. Second, `#group` would wrap retryable `SqlLiteral`s in a
non-retryable `SqlLiteral` (because `SqlLiteral` is a subclass of
`String`).
This commit fixes both of these issues so that symbol references to join
table columns do not make a query non-retryable. `#arel_column` now
marks `SqlLiteral`s wrapping a symbol as retryable (since the symbols
are quoted they should be safe to retry). Additionally, `#group` now
doesn't re-wrap `SqlLiteral`s so passed in `SqlLiteral`s maintain their
retryable state.
0 commit comments