Uploaded image for project: 'Commons DbUtils'
  1. Commons DbUtils
  2. DBUTILS-60

Enhance message in QueryRunner#rethrow for Batch

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.2, Nightly Builds
    • 1.3
    • None

    Description

      If an error is thrown when executing a Batch (via the QueryRunner#batch method), the rethrow method incorrectly transform the batch parameters in to a String:
      instead of

      msg.append(Arrays.asList(params));

      the following should be used:

      msg.append(Arrays.deepToString(params));

      This would allow the batch parameters to be correctly displayed, instead of having [java.lang.Object[]@8954, java.lang.Object[]@78946]

      Attachments

        Activity

          People

            Unassigned Unassigned
            julien.ayme@gmail.com Julien Aymé
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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