XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 10.2.1.6
    • JDBC
    • None

    Description

      The Javadoc for JDBC4 says this about Connection.isValid:

      boolean isValid(int timeout) throws SQLException

      Returns true if the connection has not been closed and is still valid. The driver shall submit a query on the connection or use some other mechanism that positively verifies the connection is still valid when this method is called.

      The query submitted by the driver to validate the connection shall be executed in the context of the current transaction.

      Parameters: timeout - - The time in seconds to wait for the database operation used to validate the connection to complete. If the timeout period expires before the operation completes, this method returns false. A value of 0 indicates a timeout is not applied to the database operation.

      Returns: true if the connection is valid, false otherwise

      Attachments

        1. brokeredlogical1090.diff
          5 kB
          Olav Sandstaa
        2. client1090_patch1.diff
          12 kB
          Olav Sandstaa
        3. client1090_patch2.diff
          5 kB
          Olav Sandstaa
        4. embedded1090-isclosed.diff
          8 kB
          Olav Sandstaa
        5. embedded1090-query.diff
          12 kB
          Olav Sandstaa

        Issue Links

          Activity

            People

              olav Olav Sandstaa
              olav Olav Sandstaa
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: