Skip to content
Snippets Groups Projects
Commit 41c6a44b authored by Yin Huai's avatar Yin Huai Committed by Michael Armbrust
Browse files

[SPARK-7312][SQL] SPARK-6913 broke jdk6 build

JIRA: https://issues.apache.org/jira/browse/SPARK-7312

Author: Yin Huai <yhuai@databricks.com>

Closes #5847 from yhuai/jdbcJava6 and squashes the following commits:

68433a2 [Yin Huai] compile with Java 6
parent 5c1fabaf
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@
package org.apache.spark.sql
import java.sql.{Connection, Driver, DriverManager, DriverPropertyInfo, PreparedStatement}
import java.sql.{Connection, Driver, DriverManager, DriverPropertyInfo, PreparedStatement, SQLFeatureNotSupportedException}
import java.util.Properties
import scala.collection.mutable
......@@ -195,7 +195,9 @@ package object jdbc {
override def getMinorVersion: Int = wrapped.getMinorVersion
override def getParentLogger: java.util.logging.Logger = wrapped.getParentLogger
def getParentLogger: java.util.logging.Logger =
throw new SQLFeatureNotSupportedException(
s"${this.getClass().getName}.getParentLogger is not yet implemented.")
override def connect(url: String, info: Properties): Connection = wrapped.connect(url, info)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment