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

add setQueryTimeout support to QueryRunner

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.7
    • None

    Description

      java.sql.Statement and java.sql.PrepareStatement support a method called setQueryTimeout.

      It would be nice to add a public setQueryTimeout method to QueryRunner that would pass this parameter through to the underlying Statements or PreparedStatements.

      For most of my applications if a query runs longer than a few seconds, there's something wrong, and I'd like a SQLException in that scenario so I can know there's an issue.

      I'd be happy to submit some code as a proposal.

      Attachments

        1. commons-dbutils-1.1.1.zip
          120 kB
          Mabrouk Belhout

        Activity

          People

            thecarlhall Carl Franklin Hall
            eakerma Michael Akerman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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