Move select_rows implementation to super class

This commit is contained in:
Ryuta Kamizono 2016-04-24 11:20:46 +09:00
parent 39f1dac9a5
commit c1ab4a2dbf
2 changed files with 1 additions and 5 deletions

@ -66,7 +66,7 @@ def select_values(arel, name = nil, binds = [])
# 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 @@ def execute(sql, name = nil) #:nodoc:
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