Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement setQueryTimeout() #3357

Closed
monetdb-team opened this issue Nov 30, 2020 · 0 comments
Closed

Implement setQueryTimeout() #3357

monetdb-team opened this issue Nov 30, 2020 · 0 comments
Labels
Client interfaces enhancement New feature or request

Comments

@monetdb-team
Copy link

Date: 2013-09-03 08:59:03 +0200
From: @grobian
To: clients devs <>
Version: -- development
CC: martin.van.dinther

Last updated: 2016-12-21 13:07:18 +0100

Comment 19114

Date: 2013-09-03 08:59:03 +0200
From: @grobian

Now that bug #3354 is implemented, we can implement Statement.setQueryTimeout():

http://docs.oracle.com/javase/1.4.2/docs/api/java/sql/Statement.htmlsetQueryTimeout%28int%29

We actually need a way to query the server for the current timeout, in case the user manually changes this beyond the scope of the driver. Also, we need to ensure a proper exception is thrown when the timeout expires.

Comment 24465

Date: 2016-10-06 16:48:01 +0200
From: MonetDB Mercurial Repository <>

Changeset 3fa949cbc783, made by Martin van Dinther martin.van.dinther@monetdbsolutions.com in the monetdb-java repo, refers to this bug.

For complete details, see http://dev.monetdb.org/hg/monetdb-java?cmd=changeset;node=3fa949cbc783

Changeset description:

Implemented Statement methods: getQueryTimeout() and setQueryTimeout(int seconds).
getQueryTimeout() used to always return 0, now it returns the query timeout retrieved from the server.
setQueryTimeout(int seconds) used to always throw SQLException: query time outs not supported.
Now it sets the query timeout for the current connection/session on the server.
This fixes bug #3357

Comment 24466

Date: 2016-10-06 17:07:52 +0200
From: MonetDB Mercurial Repository <>

Changeset 55bacab34c04 made by Martin van Dinther martin.van.dinther@monetdbsolutions.com in the MonetDB repo, refers to this bug.

For complete details, see http//devmonetdborg/hg/MonetDB?cmd=changeset;node=55bacab34c04

Changeset description:

Add invocation and test results of new jdbc test for bug #3357.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client interfaces enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants