Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 9181

Show
Ignore:
Timestamp:
04/01/08 03:13:17 (3 months ago)
Author:
bitsweat
Message:

Add select_rows. Closes #11334 [nwiger]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • adapters/oracle/lib/active_record/connection_adapters/oracle_adapter.rb

    r7915 r9181  
    148148        end 
    149149 
     150        # Returns an array of arrays containing the field values. 
     151        # Order is the same as that returned by #columns. 
     152        def select_rows(sql, name = nil) 
     153          result = select(sql, name) 
     154          result.map{ |v| v.values} 
     155        end 
     156 
    150157        # QUOTING ================================================== 
    151158        #