Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ module ActiveRecord
module ConnectionAdapters
module Sqlserver
module DatabaseStatements
def select_rows(sql, name = nil)
raw_select sql, name, [], :fetch => :rows

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it be better to change the args to select_rows(sql, opts={}) or something like that? Doing the way you have, there's no way to differentiate between passing in only name or only binds.

def select_rows(sql, name = nil, binds = [])
raw_select sql, name, binds, :fetch => :rows
end

def execute(sql, name = nil)
Expand Down