lib/dbi/handles/statement.rb
#
# Obtains the column names for this query as an array.
#
Obtains the column names for this query as an array.
Obtains the column names for this query as an array .
def column_names
            sanity_check
            return @cols unless @cols.nil?
            @cols = @handle.column_info.collect {|col| col['name'] }
        end
def column_names sanity_check return @cols unless @cols . nil? @cols = @handle . column_info . collect { | col | col [ 'name' ] } end
Obtains the column names for this query as an array.
Obtains the column names for this query as an array .