1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #24708 from kamipo/move_select_rows_implementation_to_super_class

Move `select_rows` implementation to super class
This commit is contained in:
Jeremy Daer 2016-04-23 21:26:33 -07:00
commit 7c45fa57a1
No known key found for this signature in database
GPG key ID: AB8F6399D5C60664
2 changed files with 1 additions and 5 deletions

View file

@ -66,7 +66,7 @@ module ActiveRecord
# Returns an array of arrays containing the field values.
# Order is the same as that returned by +columns+.
def select_rows(sql, name = nil, binds = [])
raise NotImplementedError
exec_query(sql, name, binds).rows
end
# Executes the SQL statement in the context of this connection and returns

View file

@ -229,10 +229,6 @@ module ActiveRecord
log(sql, name) { @connection.execute(sql) }
end
def select_rows(sql, name = nil, binds = [])
exec_query(sql, name, binds).rows
end
def begin_db_transaction #:nodoc:
log('begin transaction',nil) { @connection.transaction }
end