Skip to content

Commit 12f5158

Browse files
committed
remove unused string substitution
1 parent 3b677aa commit 12f5158

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -314,12 +314,7 @@ def empty_insert_statement_value
314314

315315
protected
316316
def select(sql, name = nil, binds = []) #:nodoc:
317-
result = exec_query(sql, name, binds)
318-
columns = result.columns.map { |column|
319-
column.sub(/^"?\w+"?\./, '')
320-
}
321-
322-
result.rows.map { |row| Hash[columns.zip(row)] }
317+
exec_query(sql, name, binds).to_a
323318
end
324319

325320
def table_structure(table_name)

0 commit comments

Comments
 (0)