• A
    Fix regression on `.select_*` methods. · b7fcad8f
    Arthur Neves 提交于
    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]
    b7fcad8f
database_statements.rb 13.9 KB