rails / arel

A Relational Algebra
2.06k stars 390 forks source link

Delegate #to_s to #to_sql #505

Closed shlima closed 6 years ago

shlima commented 6 years ago

Please delegate #to_s to #to_sql it is useful in plain text SQL queries with Arel interpolations inside

rafaelfranca commented 6 years ago

Thank you for the issue. The entire point of Arel is to not have "SQL queries with Arel interpolations inside". That being said even that it is useful it may break some applications so it is better to avoid this change.