activewarehouse / activewarehouse-etl

Extract-Transform-Load library from ActiveWarehouse
MIT License
240 stars 102 forks source link

csv_destination enclosing inconsistent #123

Closed epinault closed 1 year ago

epinault commented 11 years ago

if you specify and enclose options for a cvs destination , it forces to have quote " but you cannot specify any other char. it should use the quote_char and set it as well like

in the init it should be

@enclose = configuration[:enclose]

in the options method

  def options
    @options ||= {
      :col_sep => separator,
      :row_sep => eol,
      :quote_char => enclose,
      :force_quotes => true & enclose
    }
  end