diff options
author | Arthur Neves <arthurnn@gmail.com> | 2014-01-29 21:17:10 -0500 |
---|---|---|
committer | Arthur Neves <arthurnn@gmail.com> | 2014-01-30 14:06:40 -0500 |
commit | b7fcad8ff04411a8d00f85094b172b6b99402190 (patch) | |
tree | ee2715f365812a464057bb64faa0dca3c587bbb2 /tasks | |
parent | db5d6bf74f3f6423e56120198685b8665e59616e (diff) | |
download | rails-b7fcad8ff04411a8d00f85094b172b6b99402190.tar.gz rails-b7fcad8ff04411a8d00f85094b172b6b99402190.tar.bz2 rails-b7fcad8ff04411a8d00f85094b172b6b99402190.zip |
Fix regression on `.select_*` methods.
This was a common pattern:
```
query = author.posts.select(:title)
connection.select_one(query)
```
However `.select` returns a ActiveRecord::AssociationRelation, which has
the bind information, so we can use that to get the right sql query.
Also fix select_rows on postgress and sqlite3 that were not using the binds
[fixes #7538]
[fixes #12017]
[related #13731]
[related #12056]
Diffstat (limited to 'tasks')
0 files changed, 0 insertions, 0 deletions