Closed hx closed 9 years ago
Resolves issue https://github.com/jackc/edge/issues/14.
Calling to_sql and then adding subsequent scopes can result in SQL containing WHERE FOO = $1 AND BAR = $1, where the second $1 should be $2.
to_sql
WHERE FOO = $1 AND BAR = $1
$1
$2
See https://github.com/rails/rails/issues/20236 for a complete explanation.
Thanks!
Very welcome. We enjoy making good use of your work. Looking forward to seeing a new revision on rubygems.org :+1:
https://rubygems.org/gems/edge/versions/0.4.2
Resolves issue https://github.com/jackc/edge/issues/14.
Calling
to_sql
and then adding subsequent scopes can result in SQL containingWHERE FOO = $1 AND BAR = $1
, where the second$1
should be$2
.See https://github.com/rails/rails/issues/20236 for a complete explanation.