We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b677aa commit 12f5158Copy full SHA for 12f5158
activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb
@@ -314,12 +314,7 @@ def empty_insert_statement_value
314
315
protected
316
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)] }
+ exec_query(sql, name, binds).to_a
323
end
324
325
def table_structure(table_name)
0 commit comments