Uploaded image for project: 'Commons DBCP'
  1. Commons DBCP
  2. DBCP-249

Validate connection only on create.

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.2
    • 2.0
    • None
    • All.

    Description

      Request to add support for testOnCreate, to validate connections only when they are created, much less frequent than on borrow.

      This will solve issues where for example driver logs you into master instead of db on the connection string because db is not available (e.g. Sybase) and then rest of the queries fail. This only happens on first login. Hence validating the correct db using sql can test such a case so that borrowers are guaranteed correct db without having to testOnBorrow every time.

      May also be worthwhile to support different validation queries for testing at different times.

      Thanks.
      Parag

      Attachments

        Activity

          People

            Unassigned Unassigned
            paragmehta Parag Mehta
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: