Skip to content

SqlServerJdbcContext Timeouts #3217

@MalkaSteinberg

Description

@MalkaSteinberg

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions