-
Notifications
You must be signed in to change notification settings - Fork 350
Open
Description
Version: 4.2.0
Module: quill-jdbc
The connectionTimeout that I set for the datasource in the db.conf is not being enforced.
If set the timeout to 1 second, the sql runs for longer than that.
How can I get the timeout to be enforced?
override def executeQuery[ T ]( sql: String, prepare: this.Prepare, extractor: this.Extractor[ T ] )
( executionInfo: ExecutionInfo, dc: Runner ) = {
val isolationLevel = "set transaction isolation level read uncommitted \n"
println( isolationLevel + newSql )
val before = System.currentTimeMillis()
println( "login timeout "+this.dataSource.getLoginTimeout )
val result = super.executeQuery( isolationLevel + newSql, prepare, extractor )( executionInfo, dc )
val after = System.currentTimeMillis()
println( "sql query duration: "+( after - before )+" ms" )
result
}
Metadata
Metadata
Assignees
Labels
No labels