Move select_rows
implementation to super class
This commit is contained in:
parent
39f1dac9a5
commit
c1ab4a2dbf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user