Skip to content

Commit

Permalink
Fix tiny bug (likely copy and paste error) in closing jdbc connection
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Boesch committed Aug 5, 2014
1 parent e053c55 commit 095b2c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/scala/org/apache/spark/rdd/JdbcRDD.scala
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class JdbcRDD[T: ClassTag](
case e: Exception => logWarning("Exception closing statement", e)
}
try {
if (null != conn && ! stmt.isClosed()) conn.close()
if (null != conn && ! conn.isClosed()) conn.close()
logInfo("closed connection")
} catch {
case e: Exception => logWarning("Exception closing connection", e)
Expand Down

0 comments on commit 095b2c9

Please sign in to comment.