apache/spark — pull request #1792 by javadba (2014-08-05 19:51:41+00:00)
Title: Fix tiny bug (likely copy and paste error) in closing jdbc connection

I inquired on dev mailing list about the motivation for checking the jdbc statement instead of the connection in the close() logic of JdbcRDD. Ted Yu believes there essentially is none- it is a simple cut and paste issue. So here is the tiny fix to patch it.