lib/dbi/handles/statement.rb
#
# Similar to #fetch, but returns Array of Array instead of Array of
# DBI::Row objects (and therefore does not perform type mapping). This
# is basically a way to get the raw data from the DBD.
#
Similar to #fetch, but returns Array of Array instead of Array of
DBI::Row objects (and therefore does not perform type mapping). This
is basically a way to get the raw data from the DBD.
Similar to #fetch but returns Array of Array instead of Array of DBI :: Row objects ( and therefore does not perform type mapping ) . This is basically a way to get the raw data from the DBD .
def fetch_array
            sanity_check({:fetchable => true, :prepared => true, :executed => true})
            if block_given? 
                while (res = @handle.fetch) != nil
                    yield res
                end
                @handle.cancel
                @fetchable = false
                return nil
            else
                res = @handle.fetch
                if res.nil?
                    @handle.cancel
                    @fetchable = false
                end
                return res
            end
        end
def fetch_array sanity_check ( { :fetchable => true , :prepared => true , :executed => true } ) if block_given? while ( res = @handle . fetch ) != nil yield res end @handle . cancel @fetchable = false return nil else res = @handle . fetch if res . nil? @handle . cancel @fetchable = false end return res end end
Similar to #fetch, but returns Array of Array instead of Array of
DBI::Row objects (and therefore does not perform type mapping).
Similar to #fetch but returns Array of Array instead of Array of DBI :: Row objects ( and therefore does not perform type mapping ) .