Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

import the MySQLConnection interface rather than the implementation

  • Loading branch information...
commit 75be8b4842fef2718c3697d1262e8d2f10fd92c4 1 parent 493832f
@freels freels authored
View
3  querulous-core/src/main/scala/com/twitter/querulous/ConnectionDestroying.scala
@@ -2,7 +2,7 @@ package com.twitter.querulous.query
import java.sql.Connection
import org.apache.commons.dbcp.{DelegatingConnection => DBCPConnection}
-import com.mysql.jdbc.{ConnectionImpl => MySQLConnection}
+import com.mysql.jdbc.MySQLConnection
trait DestroyableConnection {
def destroy()
@@ -36,5 +36,4 @@ trait ConnectionDestroying {
// "close" the wrapper so that it updates its internal bookkeeping, just do it
try { conn.close() } catch { case _ => }
}
-
}
View
2  querulous-core/src/main/scala/com/twitter/querulous/config/Query.scala
@@ -41,7 +41,7 @@ class Query {
(queryClass, (timeout.timeout, timeout.cancelOnTimeout))
}.toList: _*)
- queryFactory = new PerQueryTimingOutQueryFactory(new SqlQueryFactory, tupleTimeout)
+ queryFactory = new PerQueryTimingOutQueryFactory(queryFactory, tupleTimeout)
}
statsFactory.foreach { f =>
Please sign in to comment.
Something went wrong with that request. Please try again.