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

Enhance message in QueryRunner#rethrow for Batch

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2, Nightly Builds
    • Fix Version/s: 1.3
    • Labels:
      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

            • Assignee:
              Unassigned
              Reporter:
              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