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:
commit
7c45fa57a1
2 changed files with 1 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue