diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2016-08-11 22:07:36 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2016-08-11 22:18:30 +0900 |
commit | c30ff2b971eb6b0b038de20ca91ef9f3a6e460f6 (patch) | |
tree | 2eccbf6db9a155dc087800081894974bb7244852 /activerecord/lib/active_record/connection_adapters | |
parent | 7c279ad696e1154b2f2dbef26ba0ff0a42aa105a (diff) | |
download | rails-c30ff2b971eb6b0b038de20ca91ef9f3a6e460f6.tar.gz rails-c30ff2b971eb6b0b038de20ca91ef9f3a6e460f6.tar.bz2 rails-c30ff2b971eb6b0b038de20ca91ef9f3a6e460f6.zip |
Make association queries to preparable: Step 1
Currently association queries cannot be preparable.
```ruby
Post.where(author_id: 1).to_a
# => SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = ? [["author_id", 1]]
Post.where(author: 1).to_a
# => SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 1
```
To make association queries to preparable, it should be handled in
`create_binds_for_hash`. This change is a first step for it.
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters')
0 files changed, 0 insertions, 0 deletions