lib/active_record/connection_adapters/fdbsql/database_statements.rb
# Returns an array of arrays containing the field values
# Order is the same as that returned by +columns+
Returns an array of arrays containing the field values
Order is the same as that returned by +columns+
Returns an array of arrays containing the field values Order is the same as that returned by + columns +
def result_as_array(res)
            binaries = []
            res.nfields.times { |i|
              binaries << i if res.ftype(i) == TypeID::BLOB
            }
            rows = res.values
            return rows unless binaries.any?
            rows.each { |row|
              binaries.each { |i|
                row[i] = unescape_binary(row[i])
              }
            }
          end
def result_as_array ( res ) binaries = [ ] res . nfields . times { | i | binaries << i if res . ftype ( i ) == TypeID :: BLOB } rows = res . values return rows unless binaries . any? rows . each { | row | binaries . each { | i | row [ i ] = unescape_binary ( row [ i ] ) } } end
Returns an array of arrays containing the field values
Order is the same as that returned by +columns+
Returns an array of arrays containing the field values Order is the same as that returned by + columns +
# Any binary columns need un-escaped
res