-
Notifications
You must be signed in to change notification settings - Fork 229
Open
Description
Currently, after a query times out to SQL server, the query will stay running on the database, even after the thread that executed the query in the java application has closed.
Some queries may still be running hours later after they timed out. By setting the query timeout, the PreparedStatement cancels the running query after the time period has elapsed.
Is it possible to expose a parameter to set the query timeout using PreparedStatement.SetQueryTimeout(int seconds)? I believe it would need to be set as each PreparedStatement was created for execution inside Query.buildPreparedStatement().
It would be ideal if this was an optional property to set while initializing a Sql2o.
Metadata
Metadata
Assignees
Labels
No labels