Skip to content

jdbc: Support a query cancelling  #155

Open

Description

@nicktorwald

This issue includes common support for query timeout as well as cancelling ones (manually or by time expiration).
Some related methods which depend on this issue are
Statement.setQueryTimeout;
Statement.cancel;
Statement.close;
Conection.abort (see #71);
Conection.close;
Conection.isValid (see #75);

Activity

  1. added a commit that references this issue on Apr 9, 2019
  2. Totktonada commented on May 19, 2019

    @Totktonada

    AFAIU this feature is optional according to the standard?

  3. nicktorwald commented on May 20, 2019

    @nicktorwald
    Author

    Looks mandatory... Could you point where you met this info? I couldn't find anything about it.
    By the way, it's done in #172.

  4. Totktonada commented on May 20, 2019

    @Totktonada

    JDBC 4.2 spec says (section 6.3 'JDBC 4.2 API Compliance'):

    It must implement the Statement interface with the exception of the following optional methods:

    • cancel
    • <...>

    I don't have objections about having the feature implemented, especially if it looks useful and even already implemented.

  5. added this to the JDBC MVP milestone on May 20, 2019
  6. Totktonada commented on May 20, 2019

    @Totktonada

    setQueryTimeout is not in this list, you are right. Set MVP milestone.

  7. Totktonada commented on Oct 16, 2019

    @Totktonada

    Done:

    Remaining:

    • Statement.cancel() is not implemented (and is optional).
    • Connection.abort() is not implemented (and seems to be mandatory).

    The latter is tracked in #71. Let's track only Statement.cancel() here. It is the optional feature, so I'll change the milestone for this issue.

  8. removed this from the JDBC MVP milestone on Oct 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions