aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/migrations/to_copy_with_timestamps
diff options
context:
space:
mode:
authorArthur Neves <arthurnn@gmail.com>2014-01-29 21:17:10 -0500
committerArthur Neves <arthurnn@gmail.com>2014-01-30 14:06:40 -0500
commitb7fcad8ff04411a8d00f85094b172b6b99402190 (patch)
treeee2715f365812a464057bb64faa0dca3c587bbb2 /activerecord/test/migrations/to_copy_with_timestamps
parentdb5d6bf74f3f6423e56120198685b8665e59616e (diff)
downloadrails-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 'activerecord/test/migrations/to_copy_with_timestamps')
0 files changed, 0 insertions, 0 deletions