lib/rbhive/connection.rb in rbhive-0.1.9 vs lib/rbhive/connection.rb in rbhive-0.1.10

- old
+ new

@@ -97,12 +97,12 @@ end private def output(sep, out_file) - tsv = self.map { |r| r.join("\t") }.join("\n") - return tsv if out_file.nil? - File.open(out_file, 'w') { |f| f << tsv } + sv = self.map { |r| r.join(sep) }.join("\n") + return sv if out_file.nil? + File.open(out_file, 'w') { |f| f << sv } end end end