Uploaded image for project: 'Commons CSV'
  1. Commons CSV
  2. CSV-140

QuoteMode.NON_NUMERIC doesn't work with CSVPrinter.printRecords(ResultSet)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.0
    • 1.1
    • Printer

    Description

      CSVPrinter.printRecords(final ResultSet resultSet) retrieves all fields from the ResultSet using ResultSet.getString(), which makes QuoteMode.NON_NUMERIC unnecessarily quote numbers.

      ResultSet.getObject() could be used instead. Any reason why it wasn't?

      Attachments

        1. commons-csv-getobject.patch
          0.5 kB
          Damjan Jovanovic

        Activity

          People

            ggregory Gary D. Gregory
            damjan Damjan Jovanovic
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1m
                1m
                Remaining:
                Remaining Estimate - 1m
                1m
                Logged:
                Time Spent - Not Specified
                Not Specified