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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: 1.1
    • Component/s: Printer
    • Labels:

      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

            • Assignee:
              ggregory Gary D. Gregory
              Reporter:
              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